how I can use fprintf for syms
5 次查看(过去 30 天)
显示 更早的评论
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 个)
Hassan F
2013-1-8
编辑:Hassan F
2013-1-8
have you tried the following?
fprintf('%3.3e',sscanf(char(z),'%e'))
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!