how I can use fprintf for syms
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hello I want to print syms with scinstific model. can you help me?
example:
Function a(n)
digits(400)
syms t
t=n;
z=vpa(t/3);
fprintf('%3,3e',z);
end
with extra thanks
zohdi
1 Kommentar
Antworten (1)
Hassan F
am 8 Jan. 2013
Bearbeitet: Hassan F
am 8 Jan. 2013
have you tried the following?
fprintf('%3.3e',sscanf(char(z),'%e'))
2 Kommentare
Walter Roberson
am 8 Jan. 2013
If you were going to do that, then
fprintf('%3.3e', double(z))
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!