how I can use fprintf for syms
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (1)
Hassan F
el 8 de En. de 2013
Editada: Hassan F
el 8 de En. de 2013
have you tried the following?
fprintf('%3.3e',sscanf(char(z),'%e'))
2 comentarios
Walter Roberson
el 8 de En. de 2013
If you were going to do that, then
fprintf('%3.3e', double(z))
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!