plotting sphere and rectangle mesh
    10 views (last 30 days)
  
       Show older comments
    
need help on plotting something like this :

any idea ?
0 Comments
Accepted Answer
  Azzi Abdelmalek
      
      
 on 23 Jun 2015
        
      Edited: Azzi Abdelmalek
      
      
 on 23 Jun 2015
  
      sphere(20)
axis square
You can get the coordinates x,y and z
[x,y,z]=sphere(20)
You can plot a sphere
surf(x,y,z)
4 Comments
  Azzi Abdelmalek
      
      
 on 23 Jun 2015
				
      Edited: Azzi Abdelmalek
      
      
 on 23 Jun 2015
  
			ii=-1:0.1:1
jj=-1:0.1:1
[ii1,jj1]=meshgrid(ii,jj)
surf(ii,jj,zeros(size(ii1)))
hold on
sphere(20)
More Answers (0)
See Also
Categories
				Find more on Surface and Mesh Plots in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
