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 commentaires

Stephen23
Stephen23 le 27 Fév 2018
Modifié(e) : Stephen23 le 27 Fév 2018
"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.')
Just tried it but did not work
Stephen23
Stephen23 le 27 Fév 2018
Modifié(e) : Stephen23 le 27 Fév 2018
It won't work, I was just curious about what you had tried.
it might have to do with how im associating the data with the columns ?

Connectez-vous pour commenter.

 Réponse acceptée

Stephen23
Stephen23 le 27 Fév 2018
Modifié(e) : Stephen23 le 27 Fév 2018
fprintf('...',[x(:),yf(:),ym(:),yw(:)].')

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by