Ao can I display a var-comment-var ?
1 次查看(过去 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?
0 个评论
采纳的回答
Thorsten
2015-10-28
If A and B are numbers, you can use
disp([num2str(A) ' my comment in between ' num2str(B)])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calendar 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!