Be the first to rate this file! 8 Downloads (last 30 days) File Size: 1.81 KB File ID: #28146

FIG2CFTOOL

by

 

Takes lines plotted in figure and puts them into cftool.

| Watch this File

File Information
Description

Grabs the lines from current figure or figurehandle passed as parameter and passes them into cftool.
Luckily, sequential calls to cftool(xdata,ydata) simply adds that data to cftool gui, so this was easy, but I thought I'd save someone else like me (that didn't want to install EzyFit) the trouble.

The variable name of ydata is set to the 'DisplayName' property of the line because that seems to be the easiest way to set the data set name. Actually changing the display name of the lines in the cftool axis doesn't work because the gui just resets it to the 'ydatavariablename vs xdatavariablename'.

Thanks to those of you that post helpful bits of code. Especially the person I stole the method to access the cftool axes from (cited in script).

Cheers.

Required Products Curve Fitting Toolbox
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us