2017-03-03 5 views
0

フォーク、 rms関数はまだオクターブのシグナルパッケージに実装されていないようです。オクターブRMS関数が認識されない

>> y = rms(x)^2 
warning: the 'rms' function belongs to the signal package from Octave Forge but 
has not yet been implemented. 

Please read `http://www.octave.org/missing.html' to learn how you can 
contribute missing functionality. 

error: 'rms' undefined near line 1 column 5 

rms値を計算するために独自のカスタム関数をどのように実装できますか?

答えて

2

RMSを実装するいくつかのpatches on the patch trackerあります

スニップ:

function y = rms (varargin) 
    if (nargin != 1 && nargin != 2) 
    print_usage(); 
    endif 
    y = sqrt (meansq (varargin{:})); 
endfunction 
は、
関連する問題