Matrix Dimension must agree..
Show older comments
i want to perform product of msg n carrier to obtain ook modulated signal bt m getting error while doing product
samples=1000;
nos=4;
%generate carrier signal
cfreq=[30 40 60 100];
t=linspace(0,1000,samples);
parfor i=1:nos
x(i,:)=sin(2*pi*cfreq(1,i)*t);
end
%input msg signal
for i=1:nos
p(i,:)=input('enter sequence');
l(i,:)=length(p(i,:));
end
%modulation
for i=1:nos
y(i,:)=x(i,:).*p(i,:); % *error:* matix dimension must agree
end
Accepted Answer
More Answers (0)
Categories
Find more on Wireless Communications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!