x=(0:0.25:a);y=(-b/2:0.25:b/2)';[xx,yy]=meshgrid(x,y);zz=0;for m=1:2:7zz=zz+(4*q0*a^4/(3.14^5*m^5*D))*sin(m*3.14*x./a);endfiguresubplot(2,2,1)surface(xx,yy,zz)
error shown is that 'z' can not be a constant or a vector. what other function can be used to plot this surface and how?
Best Answer