I have one column data 57600 points, how can i convert it to 240 by 240 matrix!
2 次查看(过去 30 天)
显示 更早的评论
I have one column data 57600 points, how can i convert it to 240 by 240 matrix!
0 个评论
回答(2 个)
James Tursa
2023-4-17
x = your column vector
result = reshape(x,240,240);
or you might need the transpose:
result = reshape(x,240,240).';
0 个评论
the cyclist
2023-4-17
% Input
V = rand(57600,1);
% Reshape it
M = reshape(V,240,240);
You may need to transpose M for your purposes.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!