필터 지우기
필터 지우기

meanfreq Command in Matlab

조회 수: 5 (최근 30일)
jen Magnes
jen Magnes 2018년 5월 19일
댓글: jen Magnes 2018년 6월 3일
What is the code behind the meanfreq command. I understand how to calculate the meanfrequency; however, it is unclear to me how the graph with the meanfreq command is created.
  댓글 수: 5
Rik
Rik 2018년 5월 19일
I thought you said you understood the method? Anyway, the actual implementation might be different for each release as the Mathworks team optimizes their functions. It is not my area of expertise, and I don't think this forum would be suited for that question anyway.
Also, could you please mark my answer as accepted answer?
jen Magnes
jen Magnes 2018년 6월 3일
As I said, I understand how mean frequency is estimated; nevertheless there are different methods. Which method is MatLab using?

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

답변 (4개)

Rik
Rik 2018년 5월 19일
With some functions, you can take a look at the underlying code with the edit command. You're in luck: meanfreq is such a function. This will help you open the function:
edit meanfreq
WARNING: do NOT edit any Mathworks function and don't replace the files. If you want something different from a provided function, save the edited code under a different name. Not doing so might lead to crashes and other unexpected behavior. Note that copying code under some circumstances might not be legal, as I would expect these functions to be copyrighted.

jen Magnes
jen Magnes 2018년 5월 19일
If you look back, I said that I understand how to calculate the meanfreq - that is a single number. I don't understand how the graph using the meanfreq is calculated.

jen Magnes
jen Magnes 2018년 5월 20일
What method does 'meanfreq' use to calculate the psd?

jen Magnes
jen Magnes 2018년 5월 20일
Nevermind. I figured it out.

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by