semilogx error, vectors must be same length

4 views (last 30 days)
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!

Accepted Answer

VBBV on 30 Dec 2022
semilogx(freq,abs(Zexp01),'.') % use freq

More Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 30 Dec 2022
Edited: Sulaymon Eshkabilov on 30 Dec 2022
Plot them like this way then by removing the transpose operation:
plot(freq, abs(Zexp01), '.')


Find more on Graph and Network Algorithms in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!