Code not working on new laptop
显示 更早的评论
Hello,
I have several scripts using EEGlab and one of its pluggin (mffimport). The scripts work well on other mac laptops (I've tried 3), but not on my new laptop (Macbookpro sonoma nov 2023). Any idea why?
I have changed the paths, dowloaded the necessarry toolboxes.
I have contacted EEGlab support who told me it's a matlab problem and I have contacted Matlab support who told me it is a code problem, not a software problem, but my code works well on other laptops...
THank you in advance for your help.
12 个评论
"Any idea why?"
Most likely because of your code, MATLAB, or your computer.
But because you did not give us any concrete information to help you (e.g. warning messages, error messages, the versions involved, the input values used, an MWE, a description of the observed behavior) we are limited to giving you a very general response to your very general question.
Lucie Aman
2024-7-3
编辑:Walter Roberson
2024-7-8
Stephen23
2024-7-3
"but it seems that matlab doesn't recognise the function."
Check that the MFFImport folder is on the MATLAB search path.
Lucie Aman
2024-7-3
Andreas Goser
2024-7-3
I recommend to check (again) if the different machines run the exact same code. I know it might be cumbersome debugging, but in my experience this is likely.
"I have added it to the path in right clicking on the folder and selected add folder and subfolder."
After adding the MFFimport folder to the search path:
- check that pop_mffimport can be called from the command line,
- call dbstop if error, run your code, check the search path after the error occurs (e.g. using path).
Lucie Aman
2024-7-8
Steven Lord
2024-7-8
What happens when you run the "problematic line"?
- Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
- Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
- Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support so we can investigate.
Lucie Aman
2024-7-8
Stephen23
2024-7-8
Compare the search path before and after the error occurs. Does it change? If so, find out where.
Lucie Aman
2024-7-9
Follow these steps:
- Try calling the function (from the command line in normal mode)
- Save the path in a MAT file.
- Call DBSTOP IF ERROR
- Run the code
- Try calling the function (from the command line in debug mode)
- Save the path in a MAT file.
- Upload the MAT files here.
- Lets us know the results of each previous step.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!