Error: Function definition not supported in this context. Create functions in code file.
古いコメントを表示
Hello everyone,
i was traying to wirte a function and i receive every time i tray to call the function this message:
Error: Function definition not supported in this context. Create functions in code file.
i thougt i maybe have some syntax-problems, so i tried wtih this very simple function:
function [x,y] = solo(a,b,c,d)
x= (a*b)+c;
y= (a*d)+b;
end
i also wrote the function in seperate skript, saved it in a file with the same name(solo)
and always call it from the command window as i should do.
i still get this annoying message!! ERROR!!
i have MATLAB R2020b
please help!
thank u very much in advance
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!