how to create column vector
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ivan Tulic
el 12 de Abr. de 2020
Comentada: Jackson
el 16 de Oct. de 2023
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
@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
Ameer Hamza
el 12 de Abr. de 2020
From your question, it appears that you want to concatenate the matrix. In MATLAB, square brackets [ ] are used for concatenation. See this example: https://www.mathworks.com/help/matlab/math/creating-and-concatenating-matrices.html#OverviewCreatingAndConcatenatingExample-3
v1 % 30x1 vector
v2 % 30x1 vector
v3 % 30x1 vector
V = [v1 v2 v3];
3 comentarios
Más respuestas (1)
venkata ganesh nalajala
el 1 de Feb. de 2021
Create a variable x that contains the value in the 6th row and 3rd column of the variable data.
Ver también
Categorías
Más información sobre Logical 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!