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

14 views (last 30 days)
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.

Answers (1)

Image Analyst
Image Analyst on 20 Sep 2020
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.

Categories

Find more on EEG/MEG/ECoG in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!