- Tables, Arrays in tabular form whose named columns can have different types
- table, Create table from workspace variables
How do I display these matrices side by side incluing one with character strings.
조회 수: 4 (최근 30일)
이전 댓글 표시
Ok, so right now I am trying to display some stats and the problem is the fact that the matrix with characters in it will not allow me to present all four matrices side by side. Here are the ones I am talking about:
R=[1;2;3;4;5;6;7;8;9;10];
N=['Kent';'Virg';'Gonz';'Duke';'Wisc';'Vill';'Ariz';'Kans';'Utah';'Notr'];
W=[25;23;26;22;23;23;22;21;20;22];
L=[0;1;1;3;2;2;3;4;4;4];
Now, I know that fprintf seems to be the best bet but I haven't been able to get it to work.
댓글 수: 0
채택된 답변
per isakson
2015년 3월 1일
편집: per isakson
2015년 3월 1일
"I haven't been able to get it to work"   Show what you done and we have a chance to spot your mistake.
for rr = 1 : length(R)
fprintf( '%6s%6i%6i%6i\n', N(rr,:),R(rr),W(rr),L(rr) );
end
See
Warning: table is fairly new in Matlab
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!