私は現在Matlab - 7.0.4の古いバージョンを正確に実行しています。新しいInputParserを含むコードをこの古いバージョンで動作するコードに変換しようとしています。 inputParserのような類似のコマンドを使用できるかどうか疑問に思っていました。古いバージョンのMatlabでInputParserに相当する?
これは私が変換に苦労しているコードのセクションです。
p=inputParser;
p.addParamValue('clusters', repmat(2,k,1), @(x)isvector(x) && length(x)==k);
p.addParamValue('numit', 1000, @(x)x>0 && mod(x,1)==0);
p.addParamValue('abort', 1e-10, @(x)x>=0);
p.addParamValue('verbose', true, @islogical);
p.addParamValue('verbosecompact', true, @islogical);
p.parse(varargin{:});
res=p.Results;
r=res.clusters;
if res.verbose
fprintf('starting graphclustering of %i-partite graph with partition sizes: ',k);
disp(n');
end