How to write a .m script that can read .xlsx file?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I'm a newbie to matlab. I'm thinking of writing a simple .m script that can read an .xlsx file on another location. I don't know how to start writing the script (like what should be included on the top section and end section of the script). Here's an example of the scenario:
.xlsx Filename = test1.xlsx
Location of .xlsx = C:\Users\SamanthaTzeeSan\Documents\MATLAB\Example 1
.m script name = matlabTest1.m
Location of .m = C:\Users\SamanthaTzeeSan\Documents\MATLAB
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 10월 31일
num = xlsread( fullfile('C:\Users\SamanthaTzeeSan\Documents\MATLAB\Example 1', 'test1.xlsx') );
댓글 수: 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!