summaryrefslogtreecommitdiff
path: root/modules/overloading/tests/unit_tests/sparse.dia.ref
blob: ceb68f5c5792d4515ef8aa95119c18c2bde5651b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2011 - DIGITEO - Michael Baudin
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- CLI SHELL MODE -->
A = spzeros(3,2);
A(3,1) = 2;
string(A)
 ans  =
 
!(3,2) sparse matrix  !
!                     !
!(3,1)    2           !