Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.3 - 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 Scilab >> Matrizes Esparsas > 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
<< spget Matrizes Esparsas 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:
Wed Oct 05 12:11:45 CEST 2011