필터 지우기
필터 지우기

Ao can I display a var-comment-var ?

조회 수: 1 (최근 30일)
Biza Ferreira
Biza Ferreira 2015년 10월 28일
댓글: Biza Ferreira 2015년 10월 28일
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일
If A and B are numbers, you can use
disp([num2str(A) ' my comment in between ' num2str(B)])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calendar에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by