As in Matlab Notebook use functions?
3 次查看(过去 30 天)
显示 更早的评论
As in Matlab use functions? For example, I wrote a function mymin, then created a .doc file and all placed in the same folder. Here is what is displayed when calling the function in MS Word:
vec=[1 2 3 4 4];
a=mymin(vec)
??? Undefined function 'mymin' for input arguments of type 'double'.
0 个评论
回答(2 个)
cheng chen
2017-3-14
your matlab "current directory" must include the function "mymin" what you difined.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!