- #1

- 24

- 0

Could anyone help me to get it corrected? Thanks in advance for any helpful answer.

function axislabeling(n)

x=1:1:n;

y=1:1:n;

z=zeros(n,n);

for i=1:n

for j=1:n

z(i,j)=i;

end

end

surf(x,y,z(x,y))

ylabel('y-axis')

xlabel('x-axis')

zlabel('z-axis')

colorbar