finding curvature of plot
이전 댓글 표시
i started with calling out my txt file this way:
[z,x,y] = textread ('D:\Matlab\315 Big.txt' ,'%f %f %f', 100); or
load('D:\Matlab\315 Big.txt');or
M =load('D:\Matlab\315 Big.txt');
and then i continue on with the whole page of function for curvature following the link. however it prompts:function k=LineCurvature2D(Vertices,Lines) ↑ Error: Function definition not supported in this context. Create functions in code file.
how should i proceed? i am totally clueless about Matlab.
댓글 수: 6
KSSV
2018년 11월 1일
YOu already asked this question thrice..:( I gave you working solution also.
Vertices =load(''D:\Matlab\315 Big.txt');
Vertices(:,1) = [] ; % because all zeros
k=LineCurvature2D(Vertices) ;
Still you posted the same question..? :(
What version you are using? See to it that, the function is in the present working directory.
Bruno Luong
2018년 11월 1일
KSSV: He doesn't know what "working directory" is, and I'm not sure he knows how to puts the function it it, let alone calling it.
phuah yun
2018년 11월 1일
phuah yun
2018년 11월 1일
Bruno Luong
2018년 11월 1일
- Remove function code in your script.
- But save function code in LineCurvature2D.m
phuah yun
2018년 11월 2일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
