how to convert a symbolic function into type double
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hi there, i have a symbolic function in the form y= A *(B*t + exp(t)) + ph(t), where ph is also symbolic, and i want to compare it with experimental data in order to estimate the values of the parameters A and B. When i call the lsqcurvefit command i am told that the input y should be of data type double. how can i deal with this ??
2 comentarios
Star Strider
el 14 de Jul. de 2015
You have to define ‘ph’ as a function of t, and incorporate it into your ‘y’ function. The lsqcurvefit function requires that ‘y’ be a function file or an anonymous function, and in a specific format, not a symbolic function.
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!