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 comentarios

Stephen23
Stephen23 el 27 de Feb. de 2018
Editada: Stephen23 el 27 de Feb. de 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 el 27 de Feb. de 2018
Editada: Stephen23 el 27 de Feb. de 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 ?

Iniciar sesión para comentar.

 Respuesta aceptada

Stephen23
Stephen23 el 27 de Feb. de 2018
Editada: Stephen23 el 27 de Feb. de 2018
fprintf('...',[x(:),yf(:),ym(:),yw(:)].')

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 27 de Feb. de 2018

Comentada:

el 27 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by