How to plot in R3 the Curve?

3 次查看(过去 30 天)
GURPREET
GURPREET 2012-8-1
Here is what i have so far.
x = -2.5:.1:2.5;
y = -2.5:.1:2.5;
[X,Y] = meshgrid(x,y);
Z = 2*sin(X.*Y);
surf(X,Y,Z)
grid on
hold on
My = [1/2 sqrt(3)/2 0; -sqrt(3)/2 1/2 0; 0 0 1;]
Mr = [sqrt(2)/2 0 -sqrt(2)/2; 0 1 0; sqrt(2)/2 0 sqrt(2)/2;]
Mp = [1 0 0; 0 sqrt(3)/2 1/2; 0 -1/2 sqrt(3)/2]
So I have the figure that looks like a flower in the first part and i called that Surface (S). Now i have to plot My Mr Mp S. And Animate.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by