what is wrong with readmatrix()?
이전 댓글 표시
I'm using R2022a to finish my homework,but readmatrix() is not functioning properly
A=readmatrix('database.txt','Range','A1:D150');
The command runs right on the local runner,but once I run on my own Matlab R2022a ,it will say that "improper use of readmatrix,not enough input arguments":

choose"pause on errors"and the result:

However,a few weeks ago there is no mistake of readmatrix.I can't believe that I didn't change my code but the Matlab itself get something wrong.That's wierd.Files below are my all whole project so far.Can anyone help me?Thanks a lot!
댓글 수: 7
dpb
2023년 5월 20일
which -all readmatrix
return? That would show any alias you may have created accidentally. If that appears normal, try a "clear all" and then execute the command from the command line and see if that fixes whatever it was...save any variables you need that were hard to generate to a .MAT file with SAVE first, of course.
After that, we'd have to see the full error message in context of the code that was run to have any chance of finding something; standing alone the function will execute normally for anybody here just trying it.
宇昊 彭
2023년 5월 20일
宇昊 彭
2023년 5월 20일
Image Analyst
2023년 5월 21일
편집: Image Analyst
2023년 5월 21일
If you have any more questions, then
attach your code with the paperclip icon
after you read this:
There is likely something you're doing in the rest of your code that is not shown in the one line snippet that you gave us.
Stephen23
2023년 5월 21일
Perhaps some other function you have created/saved is interfering:
宇昊 彭
2023년 5월 21일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!