Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CRP Toolbox for MATLAB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Norbert Marwan
CRP Toolbox for MATLAB
Commits
a8a5a3e8
Commit
a8a5a3e8
authored
8 years ago
by
marwan
Browse files
Options
Downloads
Patches
Plain Diff
in recons.m: add test for empty results vector
parent
1fd0c8fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recons.m
+11
-0
11 additions, 0 deletions
recons.m
with
11 additions
and
0 deletions
recons.m
+
11
−
0
View file @
a8a5a3e8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment