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

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일
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
... so add them in?
L15 = repmat('-', 1, 15);
fprintf('%s %s %s %s\n', L15, L15, L15, L15);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2020년 2월 28일

댓글:

2020년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by