Skip to content

Commit

Permalink
Fixed error string for weightedMean size
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Nov 21, 2019
1 parent 5cc2df7 commit 3ba48dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2. State Vectors and Ensembles/@stateDesign/weightedMean.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
elseif ~isnumeric(weights) || ~isreal(weights)
error('Weights must be a numeric, real array.');
elseif ~isequal( size(weights), dimSize(dims) )
errString = ['[', sprintf('%.f x ', obj.var(v).dimSize(dims)), sprintf('\b\b\b]')];
errString = ['[', sprintf('%.f x ', dimSize(dims)), sprintf('\b\b\b]')];
error('The size of the weights array must match the length of each dimension in the state vector: %s.', errString);
elseif ~isempty( obj.var(v).weightDims ) && any( obj.var(v).weightDims(:,dims), 'all' )
[~, dim] = find( obj.var(v).weightDims(:,dims) );
Expand Down

0 comments on commit 3ba48dd

Please sign in to comment.