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

 채택된 답변

Thorsten
Thorsten 2015년 10월 28일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2015년 10월 28일

댓글:

2015년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by