Ao can I display a var-comment-var ?

2 次查看(过去 30 天)
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 中查找有关 Startup and Shutdown 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by