필터 지우기
필터 지우기

How to make 3D plot of 3 equations

조회 수: 4 (최근 30일)
Steven
Steven 2012년 2월 18일
The problem asks me to make a 3D plot with the xyz coordinates being
x=(0.5 + 5t)sin(2pi/3t)cos(4pi*t)
y=(0.5 + 5t)sin(2pi/3t)sin(4pi*t)
z=(0.5 + 5t)cos(2pi/3t)
0<t<0.2 min
How do I make the 3D plot with 3 equations?
I keep getting these errors:
Error using mesh (line 76) Z must be a matrix, not a scalar or vector.
Error in HW4_prob2 (line 50) mesh(x,y,Z)
PLEASE HELP!!!

답변 (1개)

David
David 2012년 2월 18일
Looks like you're trying to use the mesh function. You have vector data and should be using plot3
plot3(x,y,z)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by