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

 Respuesta aceptada

John D'Errico
John D'Errico el 26 de Jun. de 2014

1 voto

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 comentario

dusan
dusan el 26 de Jun. de 2014
Thanks. I`m just tired, it sliped my mind.

Iniciar sesión para comentar.

Más respuestas (1)

Ajay Pherwani
Ajay Pherwani el 26 de Jun. de 2014

0 votos

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

Categorías

Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Jun. de 2014

Respondida:

el 26 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by