hello, any one help me , the function pop_loadset didn't work

14 次查看(过去 30 天)
the function pop_loadset didn't work event i download it and i added to the path by "add folder" but the problem when i run my code matlab showed me this error
function [EEG, command] = pop_loadset( inputname, inputpath, varargin)
Error: Function definition not supported in this context. Create functions in code file.

回答(1 个)

Image Analyst
Image Analyst 2020-9-20
Is that in it's own m-file, or is it a function in a program with a bunch of other functions in it?
Are you sure you don't have a script at the beginning of the m-file? If so, your function must have an "end" statement to close it off.

类别

Help CenterFile Exchange 中查找有关 EEG/MEG/ECoG 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by