- Example on fitting a non-linear function to given data
- Curve Fitting App to interactively fit data
- System Identification Toolbox

1 view (last 30 days)

X(variable 1) ranges between 0 to 30.69 and Y (variable 2) has two values 0.06 and 0.015. corrresponding values of the function depdendant on x and y are given in matrix format below. I wish to interpolate points for the X values when the corresponding Y value is 0.03(between 0.06 and 0.015)

6.00E-02 1.50E-02

0 0 0

1 19.7627 44.421

2 20.4254 46.964

3 21.0881 49.507

4 21.7508 52.05

5.02656 21.52675 54.66054

7.495802 23.79959 60.93982

10.07348 25.82133 67.49487

12.57828 27.59128 73.86457

15.08343 29.61274 80.23518

17.6245 31.38282 86.6971

20.05641 32.90098 92.88145

22.77898 34.7975 99.80494

25.13765 35.81236 105.803

27.85968 37.3316 112.7252

30.18262 38.7236 118.6324

30.69034 38.72549 119.9235

Vinai Datta Thatiparthi
on 16 Sep 2020

Hey Tania,

Since you have 2 independent variables, the scenario that you describe seems to be a curve-fitting problem. Based on the knowledge of what 'X' & 'Y' represent, you may have to estimate the relationship between the output data (F(x,y)) and the 2 input independent variables (X & Y). Once you get the relationship, you could then use that to evaluate F(x,0.03). Note that in theory, there could be multiple curves that could pass through the given set of points.

These following links may have the information needed to establish the relationship:

- Example on fitting a non-linear function to given data
- Curve Fitting App to interactively fit data
- System Identification Toolbox

Hope this helps!

Opportunities for recent engineering grads.

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

Start Hunting!
## 3 Comments

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/591253-i-am-trying-to-interpolate-data-from-a-data-set-each-data-point-depends-on-two-variables-i-wish#comment_1002994

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/591253-i-am-trying-to-interpolate-data-from-a-data-set-each-data-point-depends-on-two-variables-i-wish#comment_1002994

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/591253-i-am-trying-to-interpolate-data-from-a-data-set-each-data-point-depends-on-two-variables-i-wish#comment_1003024

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/591253-i-am-trying-to-interpolate-data-from-a-data-set-each-data-point-depends-on-two-variables-i-wish#comment_1003024

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/591253-i-am-trying-to-interpolate-data-from-a-data-set-each-data-point-depends-on-two-variables-i-wish#comment_1017010

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/591253-i-am-trying-to-interpolate-data-from-a-data-set-each-data-point-depends-on-two-variables-i-wish#comment_1017010

Sign in to comment.