Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

error when calculate differentiation of circle function

2 Ansichten (letzte 30 Tage)
Yu Li
Yu Li am 10 Jun. 2021
Geschlossen: Yu Li am 10 Jun. 2021
Hi:
I have a circle function: (x-x0)^2+(y-y0)^2=r^2;
in order to calculate th tangent of this function, I organized the function to y=sqrt(r^2-(x-x0)^2)+y0, and tried to calculate it in Matlab using "diff" function, however, Matlab reported error, below is the code, could anyone help me with this?
funcCircle = @(x)(sqrt(r^2-(x-x0)^2)+y0);
funcCircle_deri=diff(funcCircle,x);
Thanks!
Yu

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by