Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.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.
However, this page did not exist in the previous stable version.

Ajuda do Scilab >> Matrizes Esparsas > Sparse Matrix Conversion > mtlb_sparse

mtlb_sparse

converte matriz esparsa

Seqüência de Chamamento

Y=mtlb_sparse(X)

Parâmetros

X

matriz esparsa

Y

matriz esparsa em formato Matlab

Descrição

Y=mtlb_sparse(X) é usado para converter X, uma matriz esparsa Scilab, para formato Matlab. Y é uma variável de tipo 7, i.e., type(Y) é igual a 7. Esta função deve ser usada em mexfiles (um mexfile Matlab contendo matrizes esparsas pode ser usado apenas se as matrizes esparsas do Scilab forem convertidas para este formato). As funções full e spget funcionam com este formato.

Outras operações e funções usando este formato podem ficar sobrecarregadas com funções do Scilab usando o prefixo "%msp". Por exemplo, a função %msp_p(x) (ver diretório SCI/modules/overloading/macros) é usada para exibir tais objetos "tipo 7".

Exemplos

X=sparse(rand(2,2)); Y=mtlb_sparse(X);
Y, full(Y), [ij,v,mn]=spget(Y)

Ver Também

Report an issue
<< full Sparse Matrix Conversion sp2adj >>

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 25 08:52:31 CET 2020