As in Matlab Notebook use functions?

3 ビュー (過去 30 日間)
Cristian
Cristian 2014 年 5 月 13 日
回答済み: cheng chen 2017 年 3 月 14 日
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'.

回答 (2 件)

Roberto
Roberto 2014 年 5 月 13 日
編集済み: Roberto 2014 年 5 月 13 日
From what i know, functions must be named * .m not * .doc and shouldn't be saved in msWord format, but plain text format, for example in wondows notepad or in the built-in editor!!

cheng chen
cheng chen 2017 年 3 月 14 日
your matlab "current directory" must include the function "mymin" what you difined.

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by