I have two variables like A and B, now I need to print in command window variable1-comment-variable2 how can I do this?

 Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by