Undefined function 'times' for input arguments of type 'struct'.
4 ビュー (過去 30 日間)
古いコメントを表示
i keep getting the above error when i try to module a signal using Amplitude modulation.
im very new to this software so maybe its something really minor, but i cant seem to find the solution anywhere.
x=m.*c;
im getting the error in the above line where m is the message wave and c is the carrier wave.
by the way these where passed from another function to this modulating function.
hope someone can help Thanks in advance
0 件のコメント
回答 (1 件)
Wayne King
2013 年 12 月 28 日
編集済み: Wayne King
2013 年 12 月 28 日
I think you need to show us how you are forming your variables m and c - is either one or both a structure array?
They clearly aren't vectors.
For example, the following works to form an amplitude-modulated signal:
Fs = 20000;
t = 0:1/Fs:1;
m = (1+cos(2*pi*10*t));
c = sin(2*pi*1000*t);
x = m.*c;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Modulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!