Ao can I display a var-comment-var ?

1 Ansicht (letzte 30 Tage)
Biza Ferreira
Biza Ferreira am 28 Okt. 2015
Kommentiert: Biza Ferreira am 28 Okt. 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by