Import Data Into xls file by using MatLab Command
조회 수: 3 (최근 30일)
이전 댓글 표시
I am having difficulties to import file into MatLab due to unusual *.prn file format . I was thinking to open excel by using MatLab code an then Import data into it . For matlab help I learned to open excel workbook . But I don't know how to Import data into that excel file using MatLab command . Please help .
댓글 수: 0
답변 (1개)
Effrom
2012년 5월 8일
Are you trying to save a MAT file to XLS format or trying to run Excel from the command line?
What I've always done is export my array using the xlswrite command and then I would open in manually. I'm not sure if Excel can be run from command line, but if it can, you can try using the system command.
Example:
A = [1 2 3; 4 5 6; 7 8 9];
xlswrite('test.xls',A);
system('Command line code to open file in Excel.');
Make sure you use the single quotes as you would a string in MATLAB.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!