I dont see an error

3 views (last 30 days)
dusan
dusan on 26 Jun 2014
Answered: Ajay Pherwani on 26 Jun 2014
I dont see an error, but there is one?
display([' Nif = 'num2str(Nif,'% 10.2f') ' [-]']);

Accepted Answer

John D'Errico
John D'Errico on 26 Jun 2014
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 Comment
dusan
dusan on 26 Jun 2014
Thanks. I`m just tired, it sliped my mind.

Sign in to comment.

More Answers (1)

Ajay Pherwani
Ajay Pherwani on 26 Jun 2014
display([' Nif = ',num2str(Nif,'% 10.2f') ' [-]']);
missing a ,(comma) after ' Nif = '

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!