Curve fitting & Plotting On Logarithmic y, linear x
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ADSW121365
el 12 de Abr. de 2019
I have a plot which looks something like this;
Which is a pretty nice plot upon which I'd like to curvefit. Within the curvefitting toolbox I can either input the data as plotted here, however the y axis remains linear giving me a horrible plot;
And means the curvefitting is wrong. The next option is to input log(Ydata) which allows me curvefit to the dataset as I'm interested in it (note these are meaningless sample plots);
The issue being my yaxis is then effectively meaningless data. What I effectively wish to do is have the curvefit seen last plotted with the y axis from the first plot.
Can anyone help?
0 comentarios
Respuesta aceptada
Matt J
el 12 de Abr. de 2019
Editada: Matt J
el 12 de Abr. de 2019
You can change the scale of the plot from linear to log just by doing
hAx.YScale='log';
where hAx is a handle to your axis.
2 comentarios
Matt J
el 15 de Abr. de 2019
Editada: Matt J
el 15 de Abr. de 2019
Well, that is a nuisance, but you can re-open the plot in a separate window (use the drop-down menu option File>Print to Figure). There, you will have full control over the axes scales, and can adjust YScale as in my original answer.
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!