0

A is just a observed matrix. I cannot find the meaning of this "@(x) A*x ". Anyone can explain this code for me? What is it used for?

if iscell(A)
        LARGESCALE  = true;
        Af  = A{1};
        At  = A{2};     % we don't really need this...
    else
        LARGESCALE  = false;
        Af  = @(x) A*x;
        At  = @(x) A'*x;
    end
user3618186
  • 123
  • 1
  • 5
  • look for anonymous functions http://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html – bla Jun 16 '14 at 18:05
  • also see: http://stackoverflow.com/questions/2100595/what-is-operator-in-matlab?lq=1 – bla Jun 16 '14 at 18:08
  • what is the meaning of Af and At here? – user3618186 Jun 16 '14 at 18:18
  • if you dont understand what `A*x` or `A'*x` are, I suggest you read basic matlab documentation. the `{}` brackets suggest that a cell type variable is used (as `iscell` suggests before). – bla Jun 16 '14 at 18:41

0 Answers0