transform fprintf in disp
古いコメントを表示
hey, how do i turn this:
fprintf('\nPara i= %d\n e a= %f e a resposta é: %f ', i, n, c)
into the function disp?
1 件のコメント
Ameer Hamza
2020 年 5 月 19 日
Can you further explain what is your intended output?
回答 (1 件)
Tommy
2020 年 5 月 20 日
Maybe this?
disp(sprintf('\nPara i= %d\n e a= %f e a resposta é: %f ', i, n, c))
You'll get a warning that fprintf is preferred.
カテゴリ
ヘルプ センター および File Exchange で Quaternion Math についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
