help clarifying why code isn't working

this is my code, and i will attach in the comments what i am trying to portray. I'm having trouble understanding why it wont work. Thanks

 采纳的回答

fprintf('%15.4f %15.4f %15.4f %15.4f\n',M(1,:),M(2,:),M(3,:),M(4,:));

8 个评论

fprintf('%15.4f %15.4f %15.4f %15.4f\n',M');
Just copy and paste!
fprintf('%15.4f %15.4f %15.4f %15.4f\n',M');%M transpose (M')
The only problem is the table lines aren't there
... so add them in?
L15 = repmat('-', 1, 15);
fprintf('%s %s %s %s\n', L15, L15, L15, L15);

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Operators and Elementary Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by