필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

error when calculate differentiation of circle function

조회 수: 1 (최근 30일)
Yu Li
Yu Li 2021년 6월 10일
마감: Yu Li 2021년 6월 10일
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

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by