Column to matix In matlab
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Saki
el 9 de Abr. de 2024
Editada: cui,xingxing
el 27 de Abr. de 2024
I have 500 data points, i need a matix of 10 by 50 where, 1st 50 values will go to 1st row and 2nd 50 values in the 2nd row and continues. How can i do this in matlab
2 comentarios
Respuesta aceptada
cui,xingxing
el 9 de Abr. de 2024
Editada: cui,xingxing
el 27 de Abr. de 2024
Example:
data = 1:500;
matrix = reshape(data,50,10)';
get the size of matrix
size(matrix)
preview matrix
head(matrix)
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com
0 comentarios
Más respuestas (1)
James Tursa
el 9 de Abr. de 2024
Depends on how your data is currently stored. Suppose the data is currently in a vector v. Then
matrix = reshape(v,50,10).'
0 comentarios
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!