How can I put data from a function into columns using frprintf

I want to put the data from each function under the correct column with respect to the vector x. I've tried to transpose it but it still gives me the same answer in rows.

4 件のコメント

Stephen23
Stephen23 2018 年 2 月 27 日
編集済み: Stephen23 2018 年 2 月 27 日
"I've tried to transpose it but it still gives me the same answer in rows."
Was this what you tried?:
fprintf('...', x.', yf.', ym.', yw.')
John Baumgartner
John Baumgartner 2018 年 2 月 27 日
Just tried it but did not work
Stephen23
Stephen23 2018 年 2 月 27 日
編集済み: Stephen23 2018 年 2 月 27 日
It won't work, I was just curious about what you had tried.
John Baumgartner
John Baumgartner 2018 年 2 月 27 日
it might have to do with how im associating the data with the columns ?

サインインしてコメントする。

 採用された回答

Stephen23
Stephen23 2018 年 2 月 27 日
編集済み: Stephen23 2018 年 2 月 27 日

2 投票

fprintf('...',[x(:),yf(:),ym(:),yw(:)].')

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by