Duane Bozarth wrote: > > > "S. Gatzka" wrote: >> >> Hello. >> >> I am seeking a solution to find specific values from data-points. >> Here's the situation: >> >> I have two workspace-outputs from simulink. >> Say, x and t, where t is the simulation time. >> >> In most of the cases I have to find the time t_whatever on which > x >> reaches a specific value. >> >> How can that be managed? >> >> I have tried using SOLVE, but I think it does work only for >> 'functions', but I have no idee how to tell MATLAB, that x > depends on >> t, x(t) ... >> >> So, anyone can help me? > > iiuc, sounds like you just need to interpolate for t based on the x > value. A linear or polynomial fit to the data evaluated w/ the > independent and dependent variables reversed would do the trick... >
So I do a fit with curve-fitting-toolbox, but then what? How can I access the function within MATLAB?