Community Profile

photo

Michael Ryan


Last seen: 3 mesi ago Active since 2021

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


How to differentiate between an index and a value in a function?
The summary isn't great, so hopefully my explanation will make more sense. I have four inputs to a function. f = @(x)[0.5*(co...

3 mesi ago | 2 answers | 0

2

answers

Question


Array indices must be positive integers or logical values.
Can't seem to figure out the reason for the error. The array indices, i, as far as I can tell are intergers between 1 and 1000....

3 mesi ago | 2 answers | 0

2

answers