Why do I get "Array indices must be positive integers or logical values" error when using?
Afficher commentaires plus anciens
Array indices must be positive integers or logical values.
clc;
clear;
y(1)=0;
y(2)=1;
k=3.50
y=2 - 0.4 +1.2*y(k-1) -0.72*y(k-2);
stem(k,y,'linewidth',2);
grid;
xlabel('K');
k=0.49;
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical 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!