首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法识别倍频程RMS函数

无法识别倍频程RMS函数
EN

Stack Overflow用户
提问于 2017-03-03 23:46:00
回答 1查看 1.8K关注 0票数 1

各位,似乎在octave的signal包中还没有实现rms函数。

代码语言:javascript
复制
>> 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值吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-04 02:18:01

有一些实现rms的patches on the patch tracker

截图:

代码语言:javascript
复制
function y = rms (varargin)
  if (nargin != 1 && nargin != 2)
    print_usage ();
  endif
  y = sqrt (meansq (varargin{:}));
endfunction
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42583070

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档