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 件のコメント

Matt J
Matt J 2025 年 4 月 9 日
編集済み: Matt J 2025 年 4 月 9 日
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.
Mathieu NOE
Mathieu NOE 2025 年 4 月 10 日
you can use these functions if that helps you
feynman feynman
feynman feynman 2025 年 4 月 11 日
thanks

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLog Plots についてさらに検索

タグ

質問済み:

2025 年 4 月 9 日

コメント済み:

2025 年 4 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by