m1(t)=A1cos2πf1t m2(t)=A2cos2πf

3 views (last 30 days)
yigit aygun
yigit aygun on 30 Dec 2016
Answered: Ahmed raafat on 30 Dec 2016
m1(t)=A1cos2πf1t m2(t)=A2cos2πf2t i want to code in matlab
  4 Comments
John D'Errico
John D'Errico on 30 Dec 2016
Interestingly, this seems quite close to another question asked just a minute ago, by another person. So probably homework.
Debashis Panda
Debashis Panda on 30 Dec 2016
What is the value of amplitdes(A1 and A2), frequency (f1 and f2), and time range. please post here...

Sign in to comment.

Answers (1)

Ahmed raafat
Ahmed raafat on 30 Dec 2016
A1=input('A1=');
A2=input('A2=');
t= %vector
f1=input('f=2');
f2=input('f=2');
m1=A1*cos(2*pi*f1).*t
m2=A2*cos(2*pi*f2).*t

Categories

Find more on Operating on Diagonal Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!