semilogx error, vectors must be same length

2 次查看(过去 30 天)
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!

采纳的回答

VBBV
VBBV 2022-12-30
semilogx(freq,abs(Zexp01),'.') % use freq

更多回答(1 个)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022-12-30
编辑:Sulaymon Eshkabilov 2022-12-30
Plot them like this way then by removing the transpose operation:
plot(freq, abs(Zexp01), '.')

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by