easy solution: log scale plot for data with positive and negative data

semilogy and set(gca, 'YScale', 'log') don't work for negative data. There's user written functions resolving this but is there just any default, embedded quicker solution?

3 comentarios

Matt J
Matt J el 9 de Abr. de 2025
Editada: Matt J el 9 de Abr. de 2025
There's no solution because it's not a problem. When the data has negative values, log plots shouldn't be used, and disallowing them is the right thing.
you can use these functions if that helps you

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Etiquetas

Preguntada:

el 9 de Abr. de 2025

Comentada:

el 11 de Abr. de 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by