what is the meaning of this error, "??? Undefined function or method 'Restart' for input arguments of type 'char' when using Matlab?
이전 댓글 표시
what is the meaning of this error, "??? Undefined function or method 'Restart' for input arguments of type 'char' when using Matlab?
댓글 수: 6
What is the context? What is the code that creates the error, and what is the full text of the error message?
Without context, it means somewhere, some code is trying to call a function or method called "Restart" with a character vector as an argument. If it's supposed to be restart(), it shouldn't be capitalized.
ELISHA ANEBI
2023년 7월 8일
편집: Cris LaPierre
2023년 7월 8일
Cris LaPierre
2023년 7월 8일
The code you have shared does not produce the error you are asking about.
ELISHA ANEBI
2023년 7월 8일
ELISHA ANEBI
2023년 7월 8일
Image Analyst
2023년 7월 8일
It plots what you told it to plot. If you're plotting the wrong things, then probably your equations are wrong.
답변 (1개)
Hello ELISHA,
I tried running your commented code and found some different issue in your while loop.
Your code is running out of Root_array range, which is giving me error, you can stop that by checking width of Root_array as below
while (f<width(Root_array) && Root_array(f,1)==0 && Root_array(f,2)==0)
f=f+1;
end
while (f1<width(Root_array) && Root_array(f1,1)~=0)
f1=f1+1;
end
I also found that you are getting no plot in figure 1 and figure 2 because the plot inputs are empty (0×1 or 1×0 size)
Unstable =Rev_value(1,Rev_value_Cr:length(Rev_value))
Root_array(Rev_value_Cr:length(Rev_value),2)
You can debug your code to fix these issues.
카테고리
도움말 센터 및 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!