computefunctional.m
来自「基于"trace transform"的识别2D图像的C++源程序」· M 代码 · 共 12 行
M
12 行
function fnlvalue=computeFunctional(fnlNo,typ,AA,Lbeg)%compute the functional on AA:fid = fopen('testTr.txt','w');%testTr.txt and testTrOut.txt are temporary filesfprintf(fid,'%d ',AA); % no need of '%d'; if they are only integer, then matlab does integerfclose(fid);fN=fnlNo;L=length(AA);callfunctionalcpp=['!functional ' num2str(fN) ' ' num2str(typ) ' ' num2str(L)];if nargin == 4, callfunctionalcpp=[callfunctionalcpp ' ' num2str(Lbeg)];endeval(callfunctionalcpp)fnlvalue=textread('testTrOut.txt');% three values: non back sack
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?