improfile "Error using interp2 Too many input arguments."

4 Ansichten (letzte 30 Tage)
John
John am 25 Feb. 2023
Kommentiert: John am 27 Feb. 2023
when copying the example of the matlab, the line was drawn. But no matter how to finishe the line, shift+click, righ-click, or double-click, when it finishes, it shows the error: "Error using interp2, Too many input arguments. Error in improfile (line 236), zg = interp2(xGridPoints, yGridPoints, img, xg, yg, method);
What's the correct operation to use the improfile and let matlab to plot a line? Thanks.
I = fitsread('solarspectra.fts');
imshow(I,[]);
c=improfile
  2 Kommentare
Walter Roberson
Walter Roberson am 25 Feb. 2023
What shows up for
which -all interp2
/MATLAB/toolbox/matlab/polyfun/interp2.m /MATLAB/toolbox/parallel/gpu/@gpuArray/interp2.m % gpuArray method /MATLAB/toolbox/parallel/parallel/@codistributed/interp2.m % codistributed method
I suspect that you have another interp2 before the polyfun one.
John
John am 27 Feb. 2023
Thanks, I found the function in another package and it worked now. However, I cann't see the "accept the answer" button for this tip :-(

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by