<分区>
我在 MATLAB 中写了一个类,如下所示:
classdef sizeInfo
properties
end
methods
function [row column] = getSize(m)
[row column] = size(m);
end
end
end
当我使用这个类的getSize
函数时,它总是报如下错误:
s=sizeInfo
[r c]=s.getSize(data)
Error using sizeInfo/getSize
Too many input arguments.
谁知道为什么?