mscohere function (equations used for it)

Hey,
Can someone please provide the stepwise equations befind the mscohere function? I want to write my own function which can replace the mscohere
I have tried to implement my own function but I didnt succeed. Hope someone can help

답변 (1개)

Daniel M
Daniel M 2019년 11월 5일
편집: Daniel M 2019년 11월 5일

1 개 추천

You can view the code by typing into the command window
open mscohere
% then subsequently
open welch
and follow along. You can step through it line by line by setting a breakpoint and hitting "Step" and "Step In" where appropriate.
Though I'm not sure why you want to write your own function when this function has been professionally written.

댓글 수: 1

Daniel M
Daniel M 2019년 11월 5일
Alternatively, you can look up the coherence function in the Fieldtrip toolbox ft_connectivityanalysis and follow the case where cfg.method = 'coh'.
Here is the code
And here is a tutorial

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2019년 11월 5일

댓글:

2019년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by