How do I publish my question with the frenet function?

The question says to execute these lines of code, which will then prompt the user for values.
t=linspace(0,4*pi,101);
x=@(t) cos(t);
y=@(t) sin(t);
z=@(t) t/(2*pi); plot3(x(t),y(t),z(t))
axis equal
hold on
frenet(x,y,z)
When I do this, I get the error : "Undefined function 'frenet' for input arguments of type 'function_handle'." Help please!

Antworten (1)

Sean de Wolski
Sean de Wolski am 7 Okt. 2013
which -all frenet
'frenet' not found.
On a full product install. You need to make sure that frenet.m is on the path and that the above returns a path.

5 Kommentare

Sam
Sam am 7 Okt. 2013
how do i add it to the path?
I would recommend using the path tool:
>>pathtool
Add the directory containing it.
Sam
Sam am 7 Okt. 2013
what directory?
Whatever directory has frenet.m. Like I said, I've never heard of it.
Is it the one from the file exchange, http://www.mathworks.com/matlabcentral/fileexchange/11169-frenet ? If so then download that, unzip it into a directory, and put that directory onto your MATLAB path.

Melden Sie sich an, um zu kommentieren.

Kategorien

Tags

Noch keine Tags eingegeben.

Gefragt:

Sam
am 7 Okt. 2013

Kommentiert:

am 7 Okt. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by