what is the error ?

12 views (last 30 days)
shamsa khalid
shamsa khalid on 8 Mar 2021
Commented: shamsa khalid on 9 Mar 2021
  4 Comments
James Tursa
James Tursa on 8 Mar 2021
Please post your code as regular text highlighted by the CODE button. We can't copy & run images.
shamsa khalid
shamsa khalid on 9 Mar 2021
syms t
f=@(t)t^2
g=@(t)5*t-1
h=@(t)2*t^3-t
r=[f(t) g(t) h(t)]
dr = diff(r,t);
T=dr/norm(dr);
dT=diff(T,t);
k=norm(dT)/norm(dr);
k=subs(k,1);
disp('Curvature at t=1;'),disp(k)
disp('Or,approximately;'),disp(double(k))

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!