필터 지우기
필터 지우기

i want to add 2 signals with different freq.

조회 수: 2 (최근 30일)
ihab
ihab 2016년 11월 25일
댓글: KSSV 2016년 11월 29일
i have this SCREW (t)=A0*cos(PHI0*t)+A1*cos(PHI1*t)+A2*cos(PHI2*t)+A3*cos(PHI3*t); the result always A0*cos(PHI0*t) only if i go like this SCREW (t)=A1*cos(PHI1*t)+A2*cos(PHI2*t)+A3*cos(PHI3*t); the result will be A1*cos(PHI1*t)
why cant get the addition of these signals in my matlab code?
  댓글 수: 3
ihab
ihab 2016년 11월 29일
ok its like this A0,A1,A2,A3 IS VALUES
PHI0 = 2*pi*f0/fs; PHI1 = 2*pi*f1/fs; PHI2 = 2*pi*f2/fs; PHI3 =2*pi*f3/fs; for t = 1:fs
SCREW (t)=A0*cos(PHI0*t)+A1*cos(PHI1*t)+A2*cos(PHI2*t)+A3*cos(PHI3*t);
KSSV
KSSV 2016년 11월 29일
YOu have to mention f0,f1,f2,f3,fs,A0,A1,A2,A3 values. Then we can comment why your code is not running.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by