필터 지우기
필터 지우기

How can I compare vectors using if statement?

조회 수: 3 (최근 30일)
minsoo kim
minsoo kim 2017년 11월 30일
댓글: minsoo kim 2017년 11월 30일
Let's say I have vectors,
1. T (1 x 513) 2. F (1 x 30) 3. S (513 x 30)
As you see, T is time, F is frequency and S is output of short time fourier transform using the T and F.
S(i,j) represents the amplitude of the signal at 'i'th element of time and 'j'th element of frequency.
What I'm going to do is like below.
Let T(j)=1
case X1<F(i)<Y1
if S(i,j)>100
return A;
case X2<F(i)<Y1
if S(i,j)>100
return B;
otherwise
return C;
I already have STFT function.
But problem is, I don't know how to make this case and if statement using matlab.
plz help me.
  댓글 수: 2
M
M 2017년 11월 30일
Did you read this ?
minsoo kim
minsoo kim 2017년 11월 30일
ah......thx! haha...

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Processing Toolbox 시작하기에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!