Error: Matrix dimensions must agree while using sin function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ac=Am./m;% Amplitude of carrier signal [ where, modulation Index (m)=Am/Ac ]
fc=fa*100;% Frequency of carrier signal
Tc=1/fc;% Time period of carrier signal
yc=sin(2*pi*fc*t).*Ac;% Eqation of carrier signal
This is my code snippet. It shows the above stated error at the last line. Why is this error happening?
I just want the sin function to be multiplied with each element of Ac
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!