フィルターのクリア

transform fprintf in disp

1 回表示 (過去 30 日間)
Nuno Duarte
Nuno Duarte 2020 年 5 月 19 日
コメント済み: darova 2020 年 5 月 20 日
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
Ameer Hamza 2020 年 5 月 19 日
Can you further explain what is your intended output?

サインインしてコメントする。

回答 (1 件)

Tommy
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.
  2 件のコメント
Nuno Duarte
Nuno Duarte 2020 年 5 月 20 日
thanks tommy
darova
darova 2020 年 5 月 20 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGamma Functions についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by