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 Comments

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.

Sign in to comment.

Answers (0)

Tags

Asked:

on 9 Apr 2025

Commented:

on 11 Apr 2025

Community Treasure Hunt

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

Start Hunting!