Update Curve Fitter data
Show older comments
I'm using MatLab R2023a which comes with an "improved" layout for the Curve Fitting Toolbox
Let me describe my workflow, and my problem. I have a script that generates data into variables x and y. In a previous version of the Curve Fitting tool, I could select the dropdown and re-select x and y in order to get my new data points.
Now, with the updated version, this takes several more steps. I have to first open the select data dialog box, which is not super quick to load, then I have to select some variable that isn't x or y, because now if I select the same variable that I had before, it doesn't update the data set, and nothing happens. Then I have to reselect x and y in the select data fields, and finally close the dialog box.
Alternatively, I could lauch a new session using curveFitter(x,y), however, then I have to re-configure all of my fit parameters.
Does anyone have a suggestion? I have to do a lot of fits, and this is seriously interrupting my workflow. I'm considering downloading an old version of MatLab and using that instead because of this issue.
6 Comments
dpb
on 20 Apr 2023
Can you not write a script/function to do the work without the GUI interface getting in the way? I've never really seen the need for it for other than maybe a first-time purely exploratory peek at a new dataset, but certainly not for anything repetitive or production-like...
James Lambert
on 20 Apr 2023
dpb
on 20 Apr 2023
If the data aren't so sensitive as to be unable to be made available, I'd suggest attaching a couple representative sets with the kind of model you think appropriate. Having some context surrounding data is generally of benefit in help folks have relevant ideas on appropriate models. May entice some regulars here to chime in; often there's the challenge can't resist... :)
dpb
on 21 Apr 2023
I'd also suggest submitting the complaint/observation about changes in functionality as a Bug/Quality of Implementation issue to get it in the official complaints channel. TMW staff may/may not see any given post in Answers; that makes it an official complaint.
James Lambert
on 25 Apr 2023
dpb
on 25 Apr 2023
Agree -- enhancement requests/GUI foopahs and the like are always worth submitting...I even submit suggestions for changes to help files when find overlooked details that are significant or the like.
Answers (1)
Steven Lord
on 2 May 2023
1 vote
If you're using the Curve Fitter app you could fit your first set of data interactively then generate code from the fit and use that code for subsequent programmatic fits. See the fourth example on that documentation page.
Some of the data preprocessing Live Editor Tasks or the Data Cleaner app could help you prepare your data for use with Curve Fitter. See this documentation page for a list of available tasks; if you're excluding outliers from your data I'd take a look at the Clean Outlier Data task. Like most if not all Live Editor Tasks the Clean Outlier Data task generates code that you could incorporate into the code generated from Curve Fitter.
1 Comment
James Lambert
on 2 May 2023
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!