Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodelorme committed Oct 1, 2020
1 parent e9df6e6 commit f0f677e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion limo_pcout.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

[n,p] = size(x);
if n<p
error('Principal Component Projection cannot be computed, more observations than variables are needed')
error([ 'Principal Component Projection cannot be computed, more observations than variables are needed.' 10 ...
'When using WLS (weighted least square), you must have more trials than time samples. This is not the' 10 ...
'case for this dataset. Try reducing the number of time samples or use OLS (ordinary least square) instead.' ])
end

%% 1st Phase: Detect location outliers
Expand Down

0 comments on commit f0f677e

Please sign in to comment.