Keeps saying 'params" is undefined while using Chronux toolbox (electrophysiology toolbox) and I'm not sure why

2 ビュー (過去 30 日間)
Using Chronux (electrophysiology analysis toolbox0 to get a spectrogram. Link: http://chronux.org/
Whenever I run the following, MATLAB keeps saying its an unrecognized function or variable and I'm not sure why??? Anybody here familiar with Chronux that can provide assistance would be greatly appreciated.
mtspecgramc(spike_triggers, [.4 .005], params)

回答 (2 件)

Vinayak
Vinayak 2023 年 8 月 31 日
Hi,
Upon first glance this looks like a path issue.
Could you pls confirm if the MATLAB search path has been set correctly after installing Chronux?
If not, there are 2 ways of setting the path,
  1. This could be done programmatically from the MATLAB command line or script by
addpath(genpath('/path/to/chronux/toolbox'))
2. This can also be achieved from the File explorer in the left pane, by browsing for the folder containing Chronux utilities and right clicking on the folder and selecting "Add To Path -> Selected Folders and SubFolders".
This would add the utilities to the MATLAB search path.
Hope it helps!
Thanks,
Vinayak

Walter Roberson
Walter Roberson 2023 年 8 月 31 日
If you pass in params at all, then it must be a struct with particular fields that are described in more detail on page 30 of http://chronux.org/chronuxFiles/filesReleases/manual.pdf

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by