Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Aide de Scilab >> Matrices creuses > Sparse Matrix Conversion > mtlb_sparse

mtlb_sparse

convert sparse matrix

Calling Sequence

Y=mtlb_sparse(X)

Arguments

X

sparse matrix

Y

sparse matrix in Matlab format

Description

Y=mtlb_sparse(X) is used to convert X, a Scilab sparse matrix, to Matlab format. Y is the a variable with type 7, i.e. type(Y) is equal to 7. This function should be used in mexfiles (a Matlab mexfile containing sparse matrices can be used only if the Scilab sparse matrices are converted to that format). The functions full and spget work with this format.

Other operations and functions using this format can be overloaded with Scilab functions using the prefix "%msp". For instance the function %msp_p(x) (see SCI/modules/overloading/macros directory) is used to display such "type 7" objects.

Examples

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

See Also

  • full — sparse to full matrix conversion
  • spget — retrieves entries of sparse matrix
Report an issue
<< full Sparse Matrix Conversion sp2adj >>

Copyright (c) 2022-2024 (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:
Thu Oct 02 13:54:33 CEST 2014