Charts drawing problem using semilogy
Afficher commentaires plus anciens
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 commentaires
William Rose
le 1 Mar 2022
@Mohammad Abedzadeh, please provide the code you used to generate the image. Then people may be able to assist you. Thank you.
Walter Roberson
le 1 Mar 2022
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.
Mohammad Abedzadeh
le 1 Mar 2022
Walter Roberson
le 1 Mar 2022
Save your data and attach it as a .mat so that we can experiment.
Mohammad Abedzadeh
le 1 Mar 2022
Walter Roberson
le 1 Mar 2022
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.
Mohammad Abedzadeh
le 2 Mar 2022
Réponses (0)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!