フィルターのクリア

semilogx error, vectors must be same length

2 ビュー (過去 30 日間)
Miles Hao Peng Su
Miles Hao Peng Su 2022 年 12 月 30 日
コメント済み: Miles Hao Peng Su 2022 年 12 月 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
  2 件のコメント
VBBV
VBBV 2022 年 12 月 30 日
use
freq
instead of
Freq
and without transpose operator '
Miles Hao Peng Su
Miles Hao Peng Su 2022 年 12 月 30 日
aye thanks! this works!

サインインしてコメントする。

その他の回答 (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 Center および File Exchange2-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