Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. hold on
  2. anomaly=zeros(34,35,36);
  3. for j=1:34;
  4. for jj=1:36;
  5. for jjj=1:16;
  6. anomaly(j,jj,jjj)=1000;
  7. end
  8. end
  9. end
  10.  
  11. for radius=1:.1:10
  12. theta=linspace(0,2*pi);
  13. phi=linspace(0,2*pi);
  14. [theta,phi] = meshgrid(theta,phi);
  15. [xs,ys,zs] = sph2cart(theta,phi,radius);
  16. surf(xs,ys,zs);
  17. end
  18.  
  19. [x,y,z]=meshgrid(1:35,1:34,1:16);
  20. xslice = [1 34 ]; yslice = 15; zslice = [1 16];
  21. slice(x,y,z,anomaly,xslice,yslice,zslice)
  22. axis off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement