Hi George: bsxfun is a built-in matlab function, which should be availabe in recent versions of matlab. It is an element-by-element operator with automatic expansion of singleton dimensions. In the example below, bsxfun will substract m from y after expanding one of them if necessary. For instance if y has say k columns and m only one column, then bsxfun(@minus, y, m) is the same as y-repmat(m,1,k);
Junior
On Wed, Feb 17, 2010 at 1:17 PM, George Perendia < george@perendia.orangehome.co.uk> wrote:
Hi
Running fs2000k2a.mod I encountered an error
??? Undefined command/function 'bsxfun'.
Error in ==> disp_moments at 48 y = bsxfun(@minus, y, m);
any ideas why bsxfun is missing or what was intended?
--
Best regards George 07951415480
Dev mailing list Dev@dynare.org https://www.dynare.org/cgi-bin/mailman/listinfo/dev