如何在MatLab中找到曲线上某点的法线向量

问题描述:

我有一条曲线,我想在这条曲线的给定点上找到法线向量,后来我必须找到该法线向量与另一个向量的点积.

I have a curve and I want to find the normal vector at a given point on this curve, later I have to find the dot product of this normal vector with another vector.

我尝试了MatLab的梯度函数,但是当我们仍然需要确定特定点的梯度时,我猜想它是行不通的.

I tried the gradient function of MatLab, but I guess it doesnt work when we need to find the gradient at a specific point still I am not sure if I am wrong.

请指导我如何在MatLab中实现这一目标.

Please guide me how can I achieve this in MatLab.

谢谢.