Community Profile

photo

Asaad Abboud Alkhalaf


Last seen: 2 years ago Active since 2021

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
Subscript indices must either be real positive integers or logicals. where I have to change or update the code
instead of for n =linspace(1,2,length(x)) use for n= 1:2:length(x) if you want vector with elements spaced by 2 or for n=1...

2 years ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values problem
i-1 = 0 and this can not be array indices it has to be 1 , 2, 3, .......

2 years ago | 0