How can I evaluate the cftool grid/mesh/ surface that Matlab itself creates?
Show older comments
I have an efficiency map of raw data points (x,y,z). With cftool I have interpolated those points, to get a 3d map and a iso efficiency lines map. This map would represent an efficiency map, where "z" is the efficiency. I would like to extract the values used to build the plot, in a matrix format. (I'm assuming that Matlab, to create the graph, use a grid/ mesh to interpolate). At the moment the only way I found is: CurveFittingTool >Fit >save to Workspace: tick all the boxes (fittedmodel, goodness, output). This creates several object. Than,I have defined two vectors xq and yq to get values zq in some different points of the map. Instead of extracting values in xq,yq, I want to work with the grid/mesh that Matlab has produced. So I have the plot, but I'd like to use the data for other calculations.
I'd like to know also how to make the process automatic. In particular how to save to the workspace fittedmodel, goodness, output (that I'm assuming contains the data that I need) without going through CurveFittingTool GUI. At the moment I have auto-generated the code using >File >Generate Code, but it doesn't have the saving part.
Thank you
Accepted Answer
More Answers (0)
Categories
Find more on Interpolation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!