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

14 ビュー (過去 30 日間)
ichrak chouda
ichrak chouda 2020 年 9 月 20 日
回答済み: Image Analyst 2020 年 9 月 20 日
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 Center および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by