how to create column vector
Mostrar comentarios más antiguos
So I need to create a matrix were first column of the matrix is 30 rows of the first column vector then second column of the matrix is also 30 rows of second column vector and same for the third column of the matrix which is also 30 rows of the third vector. Is there a very simple command for that beacuse i simply can't find. And also is it possible to export my matrix to excell on matlab online.
4 comentarios
the cyclist
el 12 de Abr. de 2020
Editada: the cyclist
el 12 de Abr. de 2020
I don't understand how 1 column can be 30 rows.
Can you give a very small example of your input and expected output? Maybe use an example where you just need 3 instead of 30, to keep in manageable in size? Ideally, write it out in valid MATLAB syntax, not just text, so we know exactly what you mean.
Image Analyst
el 12 de Abr. de 2020
Here is an example of a 1 column, 30 row array:
v = rand(30, 1);
Ivan Tulic
el 12 de Abr. de 2020
the cyclist
el 12 de Abr. de 2020
@IA -- I certainly didn't state my confusion very clearly, did I? :-)
But this seems to have been resolved, so I won't bother trying again.
Respuesta aceptada
Más respuestas (1)
venkata ganesh nalajala
el 1 de Feb. de 2021
0 votos
Create a variable x that contains the value in the 6th row and 3rd column of the variable data.
1 comentario
Jackson
el 16 de Oct. de 2023
x = data(6,3)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!