How to call a user-defined function
古いコメントを表示
I have a function, CAT(a,b,c) for example saved as CAT.m in a separate file. How can I call this user-defined function from the command window? When I use the function, it makes an error with the message, "Undefined variable or function". I checked for typos. Or rather, how would I put this file on the correct Matlab path? Thanks in advance.
2 件のコメント
Make sure that the function is on the MATLAB Search Path (e.g. in the current folder):
Jisu Shin
2018 年 6 月 25 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!