How can I load data to the Curve Fitting toolbox?

10 views (last 30 days)
I have x and y data in my workspace, but when I try to select data in the Curve Fitting Toolbox, is like if I don't have nothing in the workspace.
  2 Comments
Valeria Gabrielli
Valeria Gabrielli on 14 Sep 2020
check the correct use of parentes. If you import the data using ( ), they will be imported as table and won't be in the Curve Fitting Toolbox, if you use { } they will be imported as double and available in the Curve Fitting Toolbox.
Walter Roberson
Walter Roberson on 14 Sep 2020
I am not clear as to what it means to import data using {} ?

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 27 Nov 2017
The variables will only be found if they are in the base workspace. If you are inside a function, I suggest using
cftool( x, y )

Chrysi Karagiannaki
Chrysi Karagiannaki on 7 Oct 2022
If you have any NaN or Inf values it doesn't allow you to import the x,y,z data. Also, the must be the correct size (in this case prepareSurfaceData function helps). In my case running manully the command Walter suggested: cftool( x, y, z ) helped

Categories

Find more on Get Started with Curve Fitting Toolbox 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!