Displaying multiple values separately
23 次查看(过去 30 天)
显示 更早的评论
Hello all, I have a code which calculates 2 values,one for a1=1217 and the other is for a2=-845.42. Although the code is working correctly, the end results comes as:
a1 & a2=
1217
-845.42
How can I display the end results as:
a1=1217
a2=-845.42
The code for reporting I used is :
disp('a1 & a2='); disp(a)
% where a=T\P;
I think I should use fprintf but I am not sure how.
I hope my question makes sense. Many thanks
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Transmitters and Receivers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!