Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
??? Error using ==> sphere Too many input arguments.
Error in ==>sphereplotting at 89
Z = sphere(X1,X2);
function ph = sphere(x) ph = sum(x.*x, 2); end
??? Error using ==> contour at 73
Z must be size 2x2 or greater.
cmin = -25; cmax = 25; ngrid = 25; cvals = linspace(cmin, cmax, ngrid); % Create the mesh [X1, X2] = meshgrid(cvals, cvals); % Create the grid % k=1,l=2; Z = sphere(X1,X2); figure; contour(X1, X2, Z);