Hi!
I have a cell array like the following:
I want to put each matrix of row 2 in one spreed sheet named as text in row 1. Been trying but don't not know to do it.
Thanks

 채택된 답변

Stephen23
Stephen23 2022년 4월 7일

1 개 추천

Where C is your cell array:
F = 'myfile.xlsx';
for k = 1:size(C,2)
T = C{1,k};
M = C{2,k};
writematrix(M, F, 'Sheet',T)
end

댓글 수: 2

Valeria AS
Valeria AS 2022년 4월 7일
Awesome!!
It works very well, thanks so much, Stephen!
Stephen23
Stephen23 2022년 4월 7일
@Valeria AS: if it helped you, please remember to accept my answer :)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

질문:

2022년 4월 7일

댓글:

2022년 4월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by