matlab error:Subscripted assignment dimension mismatch.

now i am confused.
i tried passing a BPSK signal through a convolutional encoder through trellis .
but trellis accpets only binary so it rejected my BPSK input ๐Ÿ˜”

so i positioned the trellis inbetween the data signal(binary) and the BPSK generator.

i was thinking that encoding is encoding where ever i do.. but still it dint work.

I dont know.. not very good at matlab.๐Ÿ˜”

partial code posted:

%creation of input signals
for i=1:32
message(i,1)=round(rand());
end;
%encoding the signal
trellis=poly2trellis(3,[5 7]);
coded=convenc(message,trellis);

% Create input BPSK signal
for i=1:64
input(i,1) = (2*coded)-1;
end

the error while running this code is"Subscripted assignment dimension mismatch."

I did Google and tried debugging... but invain

can anyone help me out???

Replies

  • durga ch
    durga ch
    gotcha!!!

    the 'iput' was a function call and i was trying to use it as a variable so it dont work
    i changed it to
    input[];
    %creation of input signals
    for i=1:32
    message(i,1)=round(rand());
    end;
    %encoding the signal
    trellis=poly2trellis(3,[5 7]);
    coded=convenc(message,trellis);

    % Create input BPSK signal
    for i=1:64
    input(i,1) = (2*coded)-1;
    end


    and it worked .. ๐Ÿ˜€

You are reading an archived discussion.

Related Posts

hey guyz.. i need to prepare a project for my TE miniproject using matlab.. can anyone suggest any topic....๐Ÿ˜•
Hey Cean please join the Group... by this group there is a common group id for some group members and we can send mail directly to them. https://ceans.myid.net/https://p1j2k3.springnote.com/pages/390234
Hey guys Please review the Golmaal returns and there is secret of Roll of PARESH RAWAL who is going to take this Roll this time?
I heard that Yahoo removed 1500 employees is it real or it is a rumor ๐Ÿ˜’
What are the advantages of using "Offsetted Crank" technology in recent IC engines.. May i know which cars have implemented this concept??