Community Profile

photo

Josué Cartujano Barrera


Last seen: nästan 2 år ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Why do i get "Index exceeds the number of array elements (2)". and how can i fix it? Please
clc; clear; y(1)=0; close all; y(2)=1; k=3:50 y(k)=2 -0.4 +1.2*y(k-1) -0.72*y(k-2); stem(k,y,'linewidth',2); ...

mer än 3 år ago | 1 answer | 0

1

answer

Question


Why do I get "Array indices must be positive integers or logical values" error when using?
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*...

mer än 3 år ago | 1 answer | 0

1

answer