How to split .mat file data into different variables?
6 次查看(过去 30 天)
显示 更早的评论
i have (51200x1) data in mat file in need to extract from (1:1024,1),(1025:2048,1), (2049:3072,1).... and so on. its 50 parts. Each part consist of 1024 column.
How it can be done.?
0 个评论
采纳的回答
David Hill
2021-4-14
a=readmatrix('yourData');
m=reshape(a,1024,[]);%why not just keep in a matrix that you can index into?
2 个评论
David Hill
2021-4-15
They are all saved in the matrix. Whenever you need a column just index into the matrix.
m(:,1);%is the first column
m(:,2);%second column ...
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!