Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in solving with PhaseLift #4

Open
arindam-bose opened this issue Feb 27, 2020 · 0 comments
Open

Problem in solving with PhaseLift #4

arindam-bose opened this issue Feb 27, 2020 · 0 comments

Comments

@arindam-bose
Copy link

arindam-bose commented Feb 27, 2020

I am using runImageReconstructionDemo
Here is my opt settings:
opts = struct;
opts.algorithm = 'PhaseLift';
opts.initMethod = 'optimal';
opts.tol = 1e-3;
opts.verbose = 2;

Stacktrace:
Error using reshape
To RESHAPE the number of elements must not change.

Error in runImageReconstructionDemo/A (line 120)
im = reshape(pixels,[numrows,numcols]);

Error in solvePhaseLift (line 91)
A = A(eye(size(x0,1)));

Error in solvePhaseRetrieval>solveX (line 214)
[sol, outs] = solvePhaseLift(A, At, b0, x0, opts);

Error in solvePhaseRetrieval (line 163)
[sol, outs] = solveX(A, At, b0, x0, opts); % Solve the problem using the specified
algorithm

Error in runImageReconstructionDemo (line 74)
[x, outs, opts] = solvePhaseRetrieval(@A, @at, b, numel(x), opts);

Description: After initialization is finished, the function A is expecting a vector of size nm x 1, but instead it gets nm x nm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant