Matrix dimension must agree error
Show older comments
- >> Data1 = 0
- >> spreadcodefor1 = [1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0];
- >> result1 = xor(Data1,spreadcodefor1);
- >> Data2 = 1
- >> spreadcodefor2 = [1 1 0 0 0 0 1 1 0 0 1 1 1 1 0 0];
- >> result2 = xor(Data2,spreadcodefor2);
- >> allresult = result1 + result2;
- >> SNR = 7;
- >> Noise(1:48) = SNR * rand(1,1);
- >> allnoise = allresult + Noise;
the last statement shows error saying matrix dimensions must agree. I do not know why is this happening. Kindly help
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!