How to change the number of digits over 15.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello! Can anyone help me with the number of digits? I need to set it over 15, around 40 or so. I know the vpa command can help but i cannot unerstand it that well. Is there any way to set the number to 40 for all operations in the workplace. Thank you very much
0 Kommentare
Akzeptierte Antwort
Matt Fig
am 27 Nov. 2012
Bearbeitet: Matt Fig
am 27 Nov. 2012
digits = 40; % Only works if you have the symbolic toolbox
But this only applies to symbolic variables. You cannot get more than 16 or so digits out of double values by definition.
N = 10/3;
isa(N,'double') % Yes, N is a double.
Ns = vpa(N)
isa(Ns,'sym') % Yes, Ns is a sym.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!