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

14 Ansichten (letzte 30 Tage)
ichrak chouda
ichrak chouda am 20 Sep. 2020
Beantwortet: Image Analyst am 20 Sep. 2020
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.

Antworten (1)

Image Analyst
Image Analyst am 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.

Kategorien

Mehr zu EEG/MEG/ECoG finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by