how to save matlab output data in excel?

조회 수: 6 (최근 30일)
majid
majid 2024년 4월 6일
댓글: Voss 2024년 4월 6일
Hello!
i have 4*100000 output data and want to save it in excel, I tried the below codes but I encounter the below error message:
writematrix(Received_Signal,'ExampleMatlab.xlsx')
and
Data_export = [Received_Signal];
writematrix(Data_export,'ExampleMatlab.xlsx');
and
xlswrite('Data_export.xlsx', Received_Signal);
error message:
Error using writematrix (line 206):
The data block starting at cell 'A1' exceeds the sheet boundaries by 0 row(s) and 83616 column(s).
Is there anyway to solve this problem?

채택된 답변

Voss
Voss 2024년 4월 6일

Write the transpose of the matrix (so you'll have 100000 rows and 4 columns):

writematrix(Received_Signal.','ExampleMatlab.xlsx') 
  댓글 수: 2
majid
majid 2024년 4월 6일
thank you.
Voss
Voss 2024년 4월 6일
You're welcome!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by