matlab online read excel sheet

조회 수: 29 (최근 30일)
saphir alexandre
saphir alexandre 2024년 2월 22일
댓글: saphir alexandre 2024년 2월 22일
Hello,
I'm having some issues with an excel sheet that i am trying to have matlab read. I uplaoded the excel sheet just fine in the files list but when i use the function readtable or xlsread it does not recognize the file. I tried putting the file path instead of the name but that didn't work either.
  댓글 수: 2
saphir alexandre
saphir alexandre 2024년 2월 22일
any tips would very appreciated
Walter Roberson
Walter Roberson 2024년 2월 22일
Please check
which -all xlsread

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

답변 (1개)

Austin M. Weber
Austin M. Weber 2024년 2월 22일
편집: Austin M. Weber 2024년 2월 22일
Have you tried specifying the file type as a spreadsheet when using the readtable function?
filename = 'Trial01_8deg (1).xlsx';
DATA = readtable(filename,'FileType','spreadsheet');
  댓글 수: 4
Voss
Voss 2024년 2월 22일
@saphir alexandre: I suspect the problem with xlsread was that you have another m-file called xlsread.m somewhere, which is being called instead of the built-in one, because xlsread with one input shouldn't give you the "Not enough input arguments" error.
You should follow Walter's advice and tell us what
which -all xlsread
outputs, in order to confirm that there is another xlsread.m file.
saphir alexandre
saphir alexandre 2024년 2월 22일
Thank you the tips! I re-uplaoded the file to remove the (1). I don't have an eeror anymore, here is what it looks like now

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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by