How to make MATLAB compute values in vertical columns to copy easier?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
wolfc
el 2 de Mzo. de 2022
Comentada: Walter Roberson
el 3 de Mzo. de 2022
Hello all! I am very new to MATLAB and was hoping somebody could help me with something small. I have been researching how to do this, however, I cannot figure it out.. I have created a program used to calculate projectile motion when considering drag. I need MATLAB to give me the y values in a neat column-like way so I can copy them and paste them into my excel spreadsheet for easier handling. Any help would be appreciated! I have attached images of my MATLAB output as well as my excel spreadsheet set up so you can understand what I am trying to do. I cannot easily copy my MATLAB output and paste it into excel currently.


1 comentario
Respuesta aceptada
Star Strider
el 2 de Mzo. de 2022
Using the ‘(:)’ subscript convention, each variable will be forced to be a column vector regardless of its original orientation:
x = randn(1,10)
y = randn(10,1)
xc = x(:) % Force Column Orientation
yc = y(:) % Force Column Orientation
.
2 comentarios
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!