Index exceeds the number of array elements (1). How can I correct this error?
1 visualización (últimos 30 días)
Hi I've got this code that gives me the messages from a variable that are from a mmsi that I want
Msg_mmsi_selected = ;
seq1 = msg_NoMatchAIS1(i);
if linia(13)=='A' && linia(15)=='1'
sequencia = ais_to_bit(linia(15:44));
Msg_mmsi_selected = seq1(mmsi_selected); % Here is the line that give me error
and the error I got is
Index exceeds the number of array elements (1).
Is there any problem in the line code that makes me this error. I thought it was because of not named the variable but I did and do not know why I continue having it.