I dont see an error, but there is one?
display([' Nif = 'num2str(Nif,'% 10.2f') ' [-]']);

 採用された回答

John D'Errico
John D'Errico 2014 年 6 月 26 日

1 投票

I would strongly suggest you learn to use commas.
display([' Nif = ',num2str(Nif,'% 10.2f'),' [-]'])
They make your code more readable. They also make your code work.

1 件のコメント

dusan
dusan 2014 年 6 月 26 日
Thanks. I`m just tired, it sliped my mind.

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

その他の回答 (1 件)

Ajay Pherwani
Ajay Pherwani 2014 年 6 月 26 日

0 投票

display([' Nif = ',num2str(Nif,'% 10.2f') ' [-]']);
missing a ,(comma) after ' Nif = '

カテゴリ

ヘルプ センター および File ExchangeFunctions についてさらに検索

質問済み:

2014 年 6 月 26 日

回答済み:

2014 年 6 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by