필터 지우기
필터 지우기

What is difference between matlab rms() and File Exchange Signal rms()

조회 수: 3 (최근 30일)
Ted H
Ted H 2023년 8월 2일
편집: Stephen23 2023년 8월 2일
I (think I) am using Signal rms from File Exchange. I downloaded this and put it in my path.
Matlab also has an rms function (Matlab rms).
Both are called as y=rms(...).
How does Matlab know which one to use?
The editor window helper shows the syntax for the Matlab version. I put in values for the Signal rms version and do not get an error, and putting in the wrong number of parameters yeilds an error consistent with Signal rms. So I am using the Signal rms version.
Signal rms requires:
y = rms(signal, windowlength, overlap, zeropad)
Matlab function requires:
y = rms(x)
y = rms(x,"all")
y = rms(x,dim)
y = rms(x,vecdim)
y = rms(___,nanflag)
  댓글 수: 1
Stephen23
Stephen23 2023년 8월 2일
편집: Stephen23 2023년 8월 2일
Note: by far the simplest and most robust solution to ensuring that you know exactly which function you are calling is to give the function a unique name. Simply rename it to "SigRMS" or similar ... and the entire problem goes away.

댓글을 달려면 로그인하십시오.

채택된 답변

Cris LaPierre
Cris LaPierre 2023년 8월 2일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by