Matrix dimension must agree
古いコメントを表示
I wanna generate multiple carrier bt m getting error at line c(i,:)=.......
nos=4;
Tb=1;
fc=[10 30];
t=0:Tb/100:1;
A=5
for i=1:nos
c(i,:)=A*sin(2*pi*fc(i,:).*t);
end
採用された回答
その他の回答 (1 件)
Azzi Abdelmalek
2016 年 3 月 21 日
編集済み: Azzi Abdelmalek
2016 年 3 月 21 日
There are many mistakes in your code
fc=[10 30];
the size of fc is [1 2], then fc(i,:) is not defined for i=2. also you are writing fc.*t, while fc and t have different sizes
3 件のコメント
sashish acharya
2016 年 3 月 21 日
Azzi Abdelmalek
2016 年 3 月 21 日
It depends on what you want
sashish acharya
2016 年 3 月 21 日
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!