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
Mathieu NOE 2021년 10월 14일

0 개 추천

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
Mathieu NOE 2021년 10월 25일
hello Andrea
problem solved ?
Mathieu NOE
Mathieu NOE 2021년 11월 5일
hello
do you mind accepting my answer ?
tx
Mathieu NOE
Mathieu NOE 2021년 11월 19일
hello
how is it going ?
problem solved ?
all the best

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

질문:

2021년 10월 14일

댓글:

2021년 11월 19일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by