plot 4d data
이전 댓글 표시
I'm trying to draw (plot) the swallowtail catastrophe surface. I am completely stuck because I'm definitely not a mathematician. The surface has the potential:
V(x) = F(x,u,v) = x^5 + ux^3 + vx^2+wx so it should be given by this implicit equation:
5x^4 + 3ux^2 + 2vx+w = 0 But I don't know how to implement this
답변 (1개)
KSSV
2017년 2월 27일
N = 50 ;
u = linspace(-2,2,N) ;
v = linspace(-0.8,0.8) ;
[U,V] = meshgrid(u,v) ;
X = U.*V.^2+3*V.^4 ;
Y = -2*U.*V-4*V.^3 ;
Z = U ;
surf(X,Y,Z) ;
카테고리
도움말 센터 및 File Exchange에서 Stress and Strain에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!