MATLAB How to Plot Vector Functions in Matlab?

AI Thread Summary
The discussion centers on plotting vector functions in MATLAB, specifically for the parametric equations x = t, y = 4t^(2/3), and z = -t^2. The suggested method involves defining a range for t from 0 to 2 in increments of 0.001, then calculating the corresponding x, y, and z values. The final step is to use the plot3 function to create a 3D plot of the curve. Additionally, there is a mention of finding the curvature at the point (1, -4, -1), although specific details on the curvature calculation are not provided. The provided MATLAB code successfully generates the desired plot.
Revan3
Messages
5
Reaction score
0
Hi, Just ran into a review problem in my calculus book. Does anyone know how to plot vector functions in matlab?

Problem:

Graph the curve with parametric equations

x = t y = 4t^(2/3) z = -t^2

[and find the curvature at the point (1,-4,-1).
 
Physics news on Phys.org
I think it is as simple as t=0:0.001:2;(say), write x=t;y=4*t.^(2/3);z=-t.^2; and then use plot3d(x,y,z)
 
Ah thanks works

t=0:0.001:2;
x = t;
y = 4*t.^(2/3);
z = -t.^2;
plot3(x,y,z)
 
Last edited:

Similar threads

Replies
8
Views
2K
Replies
4
Views
4K
Replies
4
Views
1K
Replies
1
Views
2K
Replies
2
Views
3K
Replies
2
Views
3K
Replies
5
Views
2K
Back
Top