Borrar filtros
Borrar filtros

Ao can I display a var-comment-var ?

1 visualización (últimos 30 días)
Biza Ferreira
Biza Ferreira el 28 de Oct. de 2015
Comentada: Biza Ferreira el 28 de Oct. de 2015
I have two variables like A and B, now I need to print in command window variable1-comment-variable2 how can I do this?

Respuesta aceptada

Thorsten
Thorsten el 28 de Oct. de 2015
If A and B are numbers, you can use
disp([num2str(A) ' my comment in between ' num2str(B)])

Más respuestas (0)

Categorías

Más información sobre Calendar en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by