我的 matlab 函数是这样的:
function out=func(M)
for i=1:size(M,2)
do something on M(:,i)..
end
我如何告诉 matlab 编码器参数 M 是动态维度的。我只看到如下选项: assert(isa(M, 'double')); 或断言 M 具有恒定的尺寸。
我的 matlab 函数是这样的:
function out=func(M)
for i=1:size(M,2)
do something on M(:,i)..
end
我如何告诉 matlab 编码器参数 M 是动态维度的。我只看到如下选项: assert(isa(M, 'double')); 或断言 M 具有恒定的尺寸。
您可以在http://www.mathworks.it/help/toolbox/coder/ug/bsxyt0_.html查看 Matlab 的编码器文档