fprintf for printing a matrix
古いコメントを表示
Hi, I have a matrix name BS_channelTable of size (5,25) containg only zeros and ones. I want to print its element using a single fprintf command.
Just like if i just use the matrix name BS_channelTable in the command window.
7 件のコメント
per isakson
2014 年 6 月 5 日
Why "fprintf"?
Aftab Ahmed Khan
2014 年 6 月 5 日
Cedric
2014 年 6 月 5 日
Did you try DISP?
fprintf( 'My matrix is:\n' ) ;
disp( BS_channelTable ) ;
I am asking because you are using fid = 1 = stdout..
Star Strider
2014 年 6 月 5 日
To be fair, fid = 1 was my idea, with 1 as a default to be sure it worked.
Cedric
2014 年 6 月 5 日
Well, it has also the advantage that we can display red font without CPRINTF, using 2 = stderr ;-)
Star Strider
2014 年 6 月 5 日
Thanks! I wasn’t aware of that.
Something else you taught me!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!