MATLAB can't find my file

5 Ansichten (letzte 30 Tage)
Tom
Tom am 12 Dez. 2012
Kommentiert: Armando Torres am 10 Nov. 2022
I'm trying to read in an excel spreadsheet and I can't get it to do it.
I put the spreadsheet in the MATLAB home directory, then I put this: -
M = xlsread('Psych_anon_mine.xlsx');
And I get the error message: -
??? Error using ==> xlsread at 214 XLSREAD unable to open file Psych_anon_mine.xlsx. File /Users/Tom**********/Documents/MATLAB/Psych_anon_mine.xlsx not found.
(The stars are just my last name)
Error in ==> Ass_2_data_A at 3 M = xlsread('Psych_anon_mine.xlsx');
Any help would be greatly appreciated

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Dez. 2012
(Looks like you are using OS-X)
At the MATLAB command prompt, try
!ls ~/Documents/MATLAB/Psych_anon*
and see if it finds the file. Perhaps there is a hidden extension.
  14 Kommentare
Armando Torres
Armando Torres am 10 Nov. 2022
I’ll give it a try later on tonight! Thank you both so much. I will update you with what happens
Armando Torres
Armando Torres am 10 Nov. 2022
It worked! Thank you both

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by