Hey everyone,
I created a function called matrixmultiply, and I'm trying to define it for 2, 3, and 4 input arguments. How do I do this in one single script? I've heard "varargin" and "nargin" variables could work, but I don't know how to use those.
(I've defined it separately for 4 arguments already.)
Thanks!
Best Answer