Why i am getting error in the 2nd input line
Show older comments
t=0:0.001:1;
fm = input('input modulating signal frequency = ');
fc = input('input carrier signal frequency = ');
Am = input('input amplitude of modulating signal = ');
Ac = input('input amplitude of carrier signal = ');
Ms = Am *cos(2*pi*fm*t);
subplot(3,1,1)
plot(Ms)
title('Modulating Signal');
Cs = Ac *cos(2*pi*fc*t);
subplot(3,1,2)
plot(Cs)
title('Carrrier Signal');
AMs = Ms.*Cs;
subplot(3,1,3)
plot(AMs)
title('Modulated Signal');
Answers (1)
KSSV
on 28 Feb 2022
It looks there is some function in your working directory on the name input. What does
which input
show up?
Rename the function input, if you have it in the directory.
Categories
Find more on DTMF in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!