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 commentaires

Matt J
Matt J le 9 Avr 2025
Modifié(e) : Matt J le 9 Avr 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

Connectez-vous pour commenter.

Réponses (0)

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by