螺旋波的matlab仿真程序谁有啊!

来源:百度知道 编辑:UC知道 时间:2024/05/06 11:57:50
急切需要,谢了!给个大体程序和做法也行,另外加分!谢!

matlab 螺旋面2009-03-26 12:12y = linspace(a,b) generates a row vector y of 100 points linearly spaced between and including a and b

mesh(X,Y,Z) draws a wireframe mesh with color determined by Z so color is proportional to surface height. If X and Y are vectors, length(X) = n and length(Y) = m, where [m,n] = size(Z). In this case, (X(j), Y(i), Z(i,j)) are the intersections of the wireframe grid lines; X and Y correspond to the columns and rows of Z, respectively. If X and Y are matrices, (X(i,j), Y(i,j), Z(i,j)) are the intersections of the wireframe grid lines.

%%%%%%%%%%%%%%%%
clear all
R1=20;
theta=0;
h=10;
r=linspace(0,R1);
fai=linspace(0,2*pi);
[R,T]=meshgrid(r,fai);
x=cos(fai')*r;
y=sin(fai')*r;
z=h*T/(2*pi)-R*tan(theta*pi/180);
mesh(x,y,z);

http://www.cqvip.com/qk/90976X/200803/26731397.htm