semilogx error, vectors must be same length

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!

 Akzeptierte Antwort

VBBV
VBBV am 30 Dez. 2022

1 Stimme

semilogx(freq,abs(Zexp01),'.') % use freq

2 Kommentare

use
freq
instead of
Freq
and without transpose operator '
aye thanks! this works!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 30 Dez. 2022
Bearbeitet: Sulaymon Eshkabilov am 30 Dez. 2022

1 Stimme

Plot them like this way then by removing the transpose operation:
plot(freq, abs(Zexp01), '.')

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by