Following code is coming up with error "Array indices must be positive integers or logical values."
Does someone know what is causing this. Trying to store each value into an array
z =@(x) tan(x);h = 0.5for x=1:0.5:10 Output (x) = (z(x+h)-z(x-h))/(2*h);endArray = [Output]
Best Answer