Load matrix from .mat files
显示 更早的评论
Hi,
I've got ten .mat files (P0.mat,P1.mat,P2.mat,ecc) in each of them I have a 256 * 10 matrix, I want to read them and create a single 256 * 100 matrix, how can I do?
Thanks
Andrea
回答(1 个)
Mathieu NOE
2021-10-14
hello
try this :
data_all = [];
for ci = 1:10
filename = ['P' num2str(ci-1) '.mat'];
data = load(filename);
data_all = [data_all data]; % horizontal concatenation
end
3 个评论
Mathieu NOE
2021-10-25
hello Andrea
problem solved ?
Mathieu NOE
2021-11-5
hello
do you mind accepting my answer ?
tx
Mathieu NOE
2021-11-19
hello
how is it going ?
problem solved ?
all the best
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!