Maximum variable size allowed by the program is exceeded.
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
mania online
il 27 Mar 2016
Modificato: Azzi Abdelmalek
il 27 Mar 2016
i tried this A =reshape( (zeros(vsize*vsize*2)),[],2); but getting Error using zeros Maximum variable size allowed by the program is exceeded. but when i tried A= reshape( (blanks(vsize*vsize*2)),[],2); is fine here vsize is 256
0 Commenti
Risposta accettata
Walter Roberson
il 27 Mar 2016
blanks(vsize*vsize*2) creates a 1 x vsize*vsize*2 vector of characters.
zeros(vsize*vsize*2) creates a vsize*vsize*2 by vsize*vsize*2 array of double precision numbers. If you want a vector instead then you need to specify the "1", such as zeros(1,vsize*vsize*2)
0 Commenti
Più risposte (1)
Azzi Abdelmalek
il 27 Mar 2016
Modificato: Azzi Abdelmalek
il 27 Mar 2016
you can check that blanks(n) takes less memory then zros(4) a=blanks(4) b=zeros(4) whos a whos b
0 Commenti
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!