function parameter includes h. I want plot title to include same h. how to do?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hello,
function parameter includes h. I want plot title to include same h. how to do?
function G=graphit(X,Y,ye,h)
plot(X,Y,'-');
grid
title([ 'Approximate and Exact Solution @h= .', num2str(h)])
Thanks.
MM
0 件のコメント
回答 (1 件)
Star Strider
2019 年 3 月 12 日
I have no idea what ‘h’ is, although I assume it’s a number.
Try this:
title(sprintf('Approximate and Exact Solution @h= %.3f.', h))
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!