mscohere function (equations used for it)
3 ビュー (過去 30 日間)
古いコメントを表示
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/246772/image.png)
0 件のコメント
回答 (1 件)
Daniel M
2019 年 11 月 5 日
編集済み: Daniel M
2019 年 11 月 5 日
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
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
参考
カテゴリ
Help Center および File Exchange で Data Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!