m1(t)=A1cos2πf1t m2(t)=A2cos2πf
3 views (last 30 days)
Show older comments
m1(t)=A1cos2πf1t m2(t)=A2cos2πf2t i want to code in matlab
4 Comments
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
on 30 Dec 2016
What is the value of amplitdes(A1 and A2), frequency (f1 and f2), and time range. please post here...
Answers (1)
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
0 Comments
See Also
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!