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!