curve fitting - how to use cftool non-interactively in matlab -
is there way use cftool non-interactively. example, given x, y , fitting function, calling cftool generate , returned fitted data without using opening toolbox gui. thanks you can use fit function comes curve fitting toolbox. find out more, type doc fit . or can use cftool interactively, use generate code file menu create function uses fit command repeat interactive work programmatically. use template example.