I want to solve a least square problem, say with \ or lsqlin. My matrix C is huge, so I want to represent it with an operator. I have defined "mtimes" and "ctranspose" for my operator, so C*x and C'*x are defined, but I don't know how to do "mldivide".
Generally, how do Matlab functions [that accept matrices as input] work with operators? (say eigs, or lsqlin, …)
Specifically, my question is how should I do something like this:
A = myOperator(parameter1, parameter2);x = im2double(imread('cameraman.tif'));y = imnoise(x, 'gaussian' , 0,0.01);y = y(:);g = lsqlin(A,y);
As I said, A*x(:) and A'*x(:) are defined.
Any help is appreciated.
Best Answer