Skip to content

Commit

Permalink
Made rms() also work with row vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jun 3, 2014
1 parent ff15600 commit 99f75a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SFS_general/rms.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
options='';
end

% if the input signal is a row vector change it to a column vector
if isvector(insig) && size(insig,2)>2
insig = insig';
end

%% ===== Computation =====================================================
% It is better to use 'norm' instead of explicitly summing the squares, as
Expand Down

0 comments on commit 99f75a8

Please sign in to comment.