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.
Show older comments
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)
Mark McBroom
on 19 Mar 2016
0 votes
The variable escala_profundidade_1 is not a vector. Remove index (i).
Categories
Find more on Simulink Functions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!