i have a function z which has two variables x and y. z , x and y are vectors of length 20. While plotting a function, MATLAB says that 'Data dimensions must agree'. Using the commands
x=PitchAngle;
y=TipSpeedRatio;
[xx,yy]=meshgrid(x,y);
zz=PowerCoefficient;
z=reshape(zz,[5,4])
mesh(x,y,z)
I dont know whether i am using the right command. Please lead me to the right way. Thankyou
Sir, Thankyou for your Answer. I have tried implementing this but until command 4 , the code is running without errors but when i write 5th command that is mesh(x,y,z) amd run the program, i am encountered with the same error 'Data dimensions must agree'