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!