function [ z ] = z_funct( x,y ) z=0.0817.*(3.71.*sqrt(x)-0.25.*x+5.81).*(y-91.4)+91.4;endx=[1 2 3 4 5];y=[-20:2:40];for i=1:5 z(i)=z_funct(x(i),y);endz
What I actually want to do is to calculate z, when x vary, but y stays the same
This operation returns error: In an assignment A(I) = B, the number of elements in B and I must be the same.
I know it is something wrong with my array dimensions, but I can't figure it out.
Best Answer