How to plot the vectors having different length

조회 수: 21 (최근 30일)
Rexy
Rexy 2018년 3월 23일
댓글: Birdman 2018년 3월 23일
hello, Error using semilogy/plot Vectors must be the same length. how do i plot with different length?

채택된 답변

Birdman
Birdman 2018년 3월 23일
Replace the line
semilogy(f,c_1)
with
semilogy(f(1:numel(c_1)),c_1)
  댓글 수: 2
Rexy
Rexy 2018년 3월 23일
thanks.
Birdman
Birdman 2018년 3월 23일
You are welcome.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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