필터 지우기
필터 지우기

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 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