hello, I have this graph shown below, I want to use it in my code for find (Y) value by giving (X) value, there is no equation can fit this curve, can you tell me the way for using this graph in my code please?

1 view (last 30 days)

Answers (2)

Kuifeng
Kuifeng on 14 Apr 2016
vq = interp1(x,v,xq,method) %help interp1

Steven Lord
Steven Lord on 14 Apr 2016
Export the fit to the workspace then evaluate it. See the "Generate Code and Export Fits to the Workspace" and "Evaluate a Curve Fit" items in the Examples and How To section of this documentation page.

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!