ginput Error (Too many input arguments).
이전 댓글 표시
Hello,
I was trying to acquire some data from a plot and have used this method sucessfully in the past. Now i can't seem to use it. Attaching my code with comments from command window. When the code gets to run ginput it says too many input arguments and does not throw cursors on the screen. Any help would be highly appreciated.
>> clearvars;
[filename,pathname] = uigetfile({'*.xlsx';'*.csv';'*.xls'});
fullfilename = fullfile(pathname,filename);
A = xlsread(fullfilename);
Torque = movmean(A(22:end,3),35);
Angle = movmean(A(22:end,2),35);
plot(Torque);
[a] = ginput(2);
startingIndex = a(1);
endingIndex = a(2);
x = 1 : length(Torque);
zone = find(x >= startingIndex & x <= endingIndex);
Torque1 = Torque(zone);
Angle1 = Angle(zone);
Error using ginput
Too many input arguments.
댓글 수: 7
Adam
2020년 2월 5일
What does
which ginput
show?
Sai Gudlur
2020년 2월 5일
Walter Roberson
2020년 2월 5일
What is the output of the command
which -all ginput
Sai Gudlur
2020년 2월 5일
편집: Sai Gudlur
2020년 2월 5일
Sai Gudlur
2020년 2월 5일
Walter Roberson
2020년 2월 5일
We understand the error message that you are getting. Now we need you to help us diagnose the problem by executing the command we posted and telling us the results.
Sai Gudlur
2020년 2월 5일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!