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

 採用された回答

David Hill
David Hill 2020 年 2 月 28 日

0 投票

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

8 件のコメント

David Hill
David Hill 2020 年 2 月 28 日
fprintf('%15.4f %15.4f %15.4f %15.4f\n',M');
Charlotte Reed
Charlotte Reed 2020 年 2 月 28 日
Charlotte Reed
Charlotte Reed 2020 年 2 月 28 日
David Hill
David Hill 2020 年 2 月 28 日
Just copy and paste!
fprintf('%15.4f %15.4f %15.4f %15.4f\n',M');%M transpose (M')
Walter Roberson
Walter Roberson 2020 年 2 月 28 日
Not 'M' but just M'
Charlotte Reed
Charlotte Reed 2020 年 2 月 28 日
Charlotte Reed
Charlotte Reed 2020 年 2 月 28 日
The only problem is the table lines aren't there
Walter Roberson
Walter Roberson 2020 年 2 月 28 日
... so add them in?
L15 = repmat('-', 1, 15);
fprintf('%s %s %s %s\n', L15, L15, L15, L15);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by