In my homework I was asked to use fprintf to display my data in a table?
1 回表示 (過去 30 日間)
古いコメントを表示
I have been using the correct code but instead of having one header at the top and all the numbers below the headers all the numbers are displayed and the headers appear beside each number.
here is the code I've been typing
fprintf ( s% s% \n f2.0% e1.2% \n , 'K value', 'Temp', K , T)
Please Help!
0 件のコメント
採用された回答
Image Analyst
2015 年 2 月 16 日
編集済み: Image Analyst
2015 年 2 月 16 日
Because K and T are arrays, you need to do it in two separate fprintf()s:
fprintf('K value, Temp\n');
fprintf('%2.0f %6.2e\n', K , T);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!