Can anyone help me identify what is wrong with this code
Afficher commentaires plus anciens
function l =pol3(arr)
arr = [5 10 15 20 25 30 35 40];
for i=1:length(arr)
diff(i) = arr(i+1) - arr(i) %I keep getting an error on line 4
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!