semilogx error, vectors must be same length
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Miles Hao Peng Su
le 30 Déc 2022
Commenté : Miles Hao Peng Su
le 30 Déc 2022
Hi, I am trying to plot a graph with logarithmic scale with semilogx, however I have encountered problem using it.
I have checked that both Freq' and abs(Zexp01) are 31 by 24, so they are the same size. However I still encounter problem that says vectors must be the same size. May I know how to solve this?
Thank you!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1247837/image.png)
0 commentaires
Réponse acceptée
Plus de réponses (1)
Sulaymon Eshkabilov
le 30 Déc 2022
Modifié(e) : Sulaymon Eshkabilov
le 30 Déc 2022
Plot them like this way then by removing the transpose operation:
plot(freq, abs(Zexp01), '.')
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!