plotting sphere and rectangle mesh
조회 수: 22 (최근 30일)
이전 댓글 표시
need help on plotting something like this :
any idea ?
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2015년 6월 23일
편집: Azzi Abdelmalek
2015년 6월 23일
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
Azzi Abdelmalek
2015년 6월 23일
편집: Azzi Abdelmalek
2015년 6월 23일
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)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!