Ao can I display a var-comment-var ?

1 vue (au cours des 30 derniers jours)
Biza Ferreira
Biza Ferreira le 28 Oct 2015
Commenté : Biza Ferreira le 28 Oct 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?

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)])
  1 commentaire
Biza Ferreira
Biza Ferreira le 28 Oct 2015
Tank you thorsten

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Calendar dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by