Exporting data from matlab to a excel with a special pathway
이전 댓글 표시
Dear Users! Imagine that I have the matrices of Y1=rand(5), Y2=rand(7) and Y3=rand(4). I want to specifically export these matrices to an excel file at Desktop with a file name of Admittance.xlsx. Y1, Y2 and Y3 should be on Sheet 1, Sheet 2 and Sheet 3, respectively. Could you please help me to do it? Thanks a lot!
답변 (2개)
Alex Mcaulley
2019년 9월 9일
xlswrite(filename,Y1,1)
xlswrite(filename,Y2,2)
xlswrite(filename,Y3,3)
댓글 수: 4
Alex Mcaulley
2019년 9월 9일
filename = fullfile('yourPath','Admittance.xlsx') %where yourPath is the folder where you want to save the file
Rengin
2019년 9월 9일
Alex Mcaulley
2019년 9월 9일
What do you mean with "It doesn't work"? Do you get any error? If this is the case, please copy-paste the full error text
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!