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!
