필터 지우기
필터 지우기

readmatrix "not enough input arguments"

조회 수: 15 (최근 30일)
Frederikke Hansen
Frederikke Hansen 2020년 11월 26일
댓글: Ameer Hamza 2020년 11월 26일
I'm getting a really strange error when trying to use readmatrix() to load a .csv file. It tells me there's not enough input arguments!
d_obs = readmatrix(sprintf('%s/%s',NMR_path,NMR_obs_filename));
this is the command I'm using. The strange thing is that just last week, this worked perfectly, and I have not changed anything since then. If it is at all related, I also get a message "The import tool doesn't have access to read the file" when I try to open the file directly by double-clicking it in the current folder tab. I checked the files and they're not empty.
Anyone got some idea of what is going on here?
  댓글 수: 9
Frederikke Hansen
Frederikke Hansen 2020년 11월 26일
@Ameer Hamza
Star Strider
Star Strider 2020년 11월 26일
What else is in the
C:\Users\frede\Documents\MATLAB\NMR Project\Alt\Alternative Approach testing\Easy to use\
directory?

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

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 26일
편집: Ameer Hamza 2020년 11월 26일
You have defined a function name replace() placed on path
C:\...\Thesis\emi-matlab-master\EMI_Calibration\replace.m
which is shadowing the MATLAB's built-in function named replace(). Rename your function to something else.
  댓글 수: 2
Frederikke Hansen
Frederikke Hansen 2020년 11월 26일
OH! This makes sense, the scripts in this folder are not written by me and I only recently added it to my directory. Thank you!
Ameer Hamza
Ameer Hamza 2020년 11월 26일
I am glad to be of help!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scope Variables and Generate Names에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by