how to plot a 3d evenly spaced grid
이전 댓글 표시
code is:
clc
clear variables
close all
theta=-pi/6:pi/180:pi/6;
phi=-pi/6:pi/180:pi/6;
[theta,phi]=meshgrid(theta,phi);
for rho=5:0.025:50
[x,y,z]=sph2cart(theta,phi,rho);
mesh(x,y,z,'edgecolor','g');
hold on
xs=linspace(min(x(:)),max(x(:)),61);
ys=linspace(min(y(:)),max(y(:)),61);
zs=linspace(min(z(:)),max(z(:)),61);
end
how to plot xs,ys and zs according to non-uniform spacing grid x,y and z
댓글 수: 5
KSSV
2019년 5월 28일
Question is not clear.....
VANDANA GUPTA
2019년 5월 28일
VANDANA GUPTA
2019년 5월 28일
KALYAN ACHARJYA
2019년 5월 28일
편집: KALYAN ACHARJYA
2019년 5월 28일
I have checked the attached image. Are you looking for change the grid size?
VANDANA GUPTA
2019년 5월 28일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!