Ao can I display a var-comment-var ?

1 visualizzazione (ultimi 30 giorni)
Biza Ferreira
Biza Ferreira il 28 Ott 2015
Commentato: Biza Ferreira il 28 Ott 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?

Risposta accettata

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

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by