??? 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);
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
13 Experts available now in Live!