Is it possible to plot a curve fitting object in semi log scale
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yoav Romach
el 1 de Mzo. de 2014
Comentada: Yoav Romach
el 2 de Mzo. de 2014
Hey,
Long story short, I have a curve fitting session that I want to plot in semi log scale (x). I generated the code from the curve fitting session and tried several things, all of them failed:
- Trying to replace "plot" by "semilogx" returns:
Error using semilogx
Conversion to double from cfit is not possible.
- Trying to use "set(get(h,'Parent'),'YScale','log');" returned almost the same error:
Error using set
Conversion to double from cell is not possible.
So other than extracting the function/coefficients and recreating it myself, is there any other way?
0 comentarios
Respuesta aceptada
Matt J
el 2 de Mzo. de 2014
Editada: Matt J
el 2 de Mzo. de 2014
So other than extracting the function/coefficients and recreating it myself, is there any other way?
Not clear what delimits "extracting" for you. You can always evaluate the fit over some domain using the fit object's feval() method and then plot the evalauted data using any conventional plot command. To my mind, that doesn't involve recreating the function in any way, just evaluating it directly.
Más respuestas (0)
Ver también
Categorías
Más información sobre Fit Postprocessing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!