It does not seem so simple to me. 

A = rand(1000, 1000); 

disp(A)
=> we probably don't want see all the values 
                
disp(A(1:100,1)) 
=> we probably expect to see all the elements from 1 to 100 (for debugging 
purposes)

A = [1,2; 3,4] 
=> we expect to see [1,2; 3,4] 

L = list of 1000 elements
disp(L) 
=> we don't necessarily want all the values displayed 
(but sometimes we want) 

etc... 

Maybe define a second function  ?

disp => displays in the "julia" way (for instance) 
disp_all =>  display all elements whatever the size (it's the user 
responsibility to limit the size to something reasonable) 

        
Alain


-----Message d'origine-----
De : users [mailto:[email protected]] De la part de Serge Steer
Envoyé : mercredi 27 mai 2015 09:41
À : International users mailing list for Scilab.
Objet : Re: [Scilab-users] Accidentally displaying huge matrices

For me displaying a huge matrix (or huge structure) on the screen has in 
general no interest. So it should be convenient to display only its size and 
type as it is done when displaying a struct which contain a large array:
-->S.A=rand(1000,1000)
S  =
 
   A: [1000x1000 constant]
This solution can be set as a default display mode, keeping others as options.


_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to