How to create function
4 ビュー (過去 30 日間)
古いコメントを表示
Hello I am woundering how you do this function;

I am supposed to do it with
function f = fun(x,y)
something...
end
Thanks in advance!
3 件のコメント
David K.
2019 年 10 月 1 日
Could you post the code you have and what the error is so that we can help you with that?
If the main problem is that the code you made works outside of a function and not inside, then one of my guesses to what the error could be is that the function and the file name need to be the same. EX. f = fun(x,y) needs to be saved as fun.m
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!