Ao can I display a var-comment-var ?
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
Thorsten
on 28 Oct 2015
If A and B are numbers, you can use
disp([num2str(A) ' my comment in between ' num2str(B)])
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!