Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Matrizes Esparsas > Sparse Matrix Manipulation > spones

spones

matriz esparsa

Seqüência de Chamamento

sp=spones(A)

Parâmetros

A

matriz esparsa

sp

matriz esparsa

Descrição

sp=spones(A) gera uma matriz com a mesma estrutura de espargimento de A, mas com 1 em posições não-nulas;

Exemplos

A=sprand(10,12,0.1);
sp=spones(A)
B = A~=0
bool2s(B)

Ver Também

  • sparse — definição de matriz esparsa
  • full — conversão de matriz esparsa para cheia (completa)
  • eye — matriz identidade
  • speye — matriz identidade esparsa
  • spzeros — matriz nula esparsa
Report an issue
<< speye Sparse Matrix Manipulation sprand >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:09:45 CET 2017