Skip to content
Snippets Groups Projects
Commit a8a5a3e8 authored by marwan's avatar marwan
Browse files

in recons.m: add test for empty results vector

parent 1fd0c8fd
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,9 @@ function varargout=recons(varargin)
% $Revision$
%
% $Log$
% Revision 5.5 2016/04/14 15:15:20 marwan
% adding Hirata's reconstruction method to recons.m
%
% Revision 5.4 2016/03/03 14:57:40 marwan
% updated input/output check (because Mathworks is removing downwards compatibility)
% bug in crqad_big fixed (calculation of xcf).
......@@ -195,6 +198,14 @@ else
n = sum(NN2,1);
borderI=find(n==0);
borderI(ismember(borderI,rem)) = [];
if isempty(borderI)
warning('Reconstruction method failed. Try with other method.')
delete(h_waitbar)
varargout{1} = NaN;
return
end
k = borderI(1);
r = k; % start point in the rank order vector
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment