Charts drawing problem using semilogy

Why, when I use semilogy, in some cases the graph is not displayed continuously? Is there a solution to this problem? Please pay attention to the image below.

댓글 수: 7

William Rose
William Rose 2022년 3월 1일
@Mohammad Abedzadeh, please provide the code you used to generate the image. Then people may be able to assist you. Thank you.
Walter Roberson
Walter Roberson 2022년 3월 1일
negative numbers are not drawn for log plots; complex numbers are also not drawn.
Exception: if all of the data in the log dimension is negative, then MATLAB goes ahead and draws it anyhow as-if it had been positive. This is not a design choice I agree with, but it happens.
@Walter Roberson What is your solution? What command should I use for my chart?
Walter Roberson
Walter Roberson 2022년 3월 1일
Save your data and attach it as a .mat so that we can experiment.
@Walter Roberson I can not. Because my code execution time is very long.
Walter Roberson
Walter Roberson 2022년 3월 1일
If you have an existing .fig with the data then you could zip that and attach the zip; we can extract the data from the .fig
Another case where MATLAB does not draw lines, is if the data becames NaN or infinite.
@Walter Roberson Thank you very much.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2022년 3월 1일

댓글:

2022년 3월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by