what is the error ?

2 visualizzazioni (ultimi 30 giorni)
shamsa khalid
shamsa khalid il 8 Mar 2021
Commentato: shamsa khalid il 9 Mar 2021
  4 Commenti
James Tursa
James Tursa il 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 il 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))

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by