myfrenet

버전 1.0.0.0 (1.97 KB) 작성자: Mehmet OZTURK
Construct tangent, normal and binormal vectors of a curve
다운로드 수: 2.1K
업데이트 날짜: 2008/12/10

라이선스 보기

Calculation of Tangent (T), Normal (N) and Binormal (B) of a continuous curve at every points of the curve.

function [T N B]=myfrenet(x,y,z,init)
% "x","y",and "z" is the coordinates of the curve. The curve also can be 2d.
% "init" is initial normal vector that user can be specified. With this input, you can freely initialize your vectors.

Although the name of the function is "myfrenet", the vectors are calculated in a different way from "frenet" equations because of some discontinuities of "frenet".

Derrivatives of the curve are calculated with spline fitting, therefore spline toolbox are required. If the toolbox are not available, users can change the derrivative calculation method such as by using "diff" or "gradient" command.

% Example
clear,clc
t=2*pi*linspace(-1/2,1/2,100).';
x=cos(t); y=sin(t); z=t;
myfrenet(x,y,z)

인용 양식

Mehmet OZTURK (2024). myfrenet (https://www.mathworks.com/matlabcentral/fileexchange/22376-myfrenet), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Splines에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0