Contour curve-fitting

4 Ansichten (letzte 30 Tage)
Ogheneochuko
Ogheneochuko am 13 Okt. 2015
Kommentiert: Mike Garrity am 14 Okt. 2015
Hello All, I had earlier asked a question on the use of lsqcurvefit on the contours produced from my program shown below but I got the response that it is not possible to use lsqcurvefit. As such is there any kind of curve fitting that can be applied to the contours produced from the program applied to the mat file attached. If there is please help. Thanks.
Z = load('Ir_6716.mat');
flds = fieldnames(Z);% Fieldnames of data.
field = flds{1};% First field in data structure.
A = Z.(field);
B = -272.+A;% converts from kelvin to celsius
contour(flipud(B));
[C,h] = contour(interp2(flipud(B),'spline'));
clabel(C,h);
  1 Kommentar
Mike Garrity
Mike Garrity am 14 Okt. 2015
What's your goal? If you're trying to smooth the contours by using least squares, I think that you'll find that it is a lot more robust to do apply a low-pass filter to the 2D data, and then contour that. Filtering after contouring tends to have stability issues because you've discarded so much information before filtering.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by