I have a problem with simulink, when i runnig my code, i have this error :Attempted to access 2 element of data escala_profundidade_1. The valid index range is 1 to 1 , and the compilation pause.

escala_profundidade_1 = velocidade * t / 2 + raio;
teste = zeros(2043,1);
for i=1:2043
teste(i)= escala_profundidade_1(i); % the problem happen here!!
end

Answers (1)

Categories

Products

Asked:

on 8 Mar 2016

Answered:

on 19 Mar 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!