I have writen a class in MATLAB like below:
classdef sizeInfo
properties
end
methods
function [row column] = getSize(m)
[row column] = size(m);
end
end
end
When I make use of this class's getSize
function, it always reports a error like below:
s=sizeInfo
[r c]=s.getSize(data)
Error using sizeInfo/getSize
Too many input arguments.
Anyone knows why?