What is difference between matlab rms() and File Exchange Signal rms()
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ted H
el 2 de Ag. de 2023
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 comentario
Stephen23
el 2 de Ag. de 2023
Editada: Stephen23
el 2 de Ag. de 2023
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.
Respuesta aceptada
Cris LaPierre
el 2 de Ag. de 2023
MATLAB uses the function precedence outlined here: https://www.mathworks.com/help/matlab/matlab_prog/function-precedence-order.html
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Operating on Diagonal Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!