how I can use fprintf for syms
4 ビュー (過去 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 件のコメント
回答 (1 件)
Hassan F
2013 年 1 月 8 日
編集済み: Hassan F
2013 年 1 月 8 日
have you tried the following?
fprintf('%3.3e',sscanf(char(z),'%e'))
2 件のコメント
Walter Roberson
2013 年 1 月 8 日
If you were going to do that, then
fprintf('%3.3e', double(z))
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!