How can I code fprintf this using forloop to construct a table?

조회 수: 11 (최근 30일)
Kim Hao Teong
Kim Hao Teong 2017년 11월 17일
편집: Stephen23 2017년 11월 17일
i = 1:length(ReT)
disp('--------------------------------------------------------------------------')
fprintf('%-4.0f | %f | %f | %f | %f | %f | \n ',ReT(i),FCT(1:5))
end
end
This is part of the code I am working on. How can I fix this above code?
For my code, every rows of FCT are repeated. Expect for ReT(i). Im not really sure how can I displaying this but I am following the style like in FCL. I thing I am definately sure is that you need to put for loops for this to display, but wouldn't it affect the Ret?
Please reply as soon as possible. Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by