function FirstPlot(p,vector) reshaped = reshape(vector,p,p); for i = 1:p x0reshaped(:,i) = reshaped(p-i+1,:); end surf(x0reshaped); view(2); axis equal; shading interp; colorbar; set(gcf,'rend','z'); axis tight;