Réponse acceptée

John D'Errico
John D'Errico le 26 Juin 2014

1 vote

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 commentaire

dusan
dusan le 26 Juin 2014
Thanks. I`m just tired, it sliped my mind.

Connectez-vous pour commenter.

Plus de réponses (1)

Ajay Pherwani
Ajay Pherwani le 26 Juin 2014

0 votes

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

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by