📄 computefunctional.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -