M=2;N=64;Np=4;Nframes=1000;D = round((M-1)*rand((N-Np),Nframes));Mod=pskmod(D,M);Mod=Mod';pilot=3+3j;pilotdata=zeros(1000,64);% p=1:1000;
u=0;% k=1;
for p=1:1000 for q=1:13:52 pilotdata(p,q)=pilot; for J=q+1:q+12 k=q-u:q-u+11; pilotdata(p,J)=Mod(p,k); u=u+1; end endend n=49; for m=(53:64) pilotdata(p,m)=Mod(p,n); n=n+1; end
MATLAB: I m getting ‘subscript assignment dimension mismatch’ in the code in ‘line 18’
dimension mismatch
Best Answer