フィルターのクリア

loading and accessing functions from computer memory

2 ビュー (過去 30 日間)
S H
S H 2019 年 5 月 27 日
コメント済み: S H 2019 年 5 月 27 日
Is it possible to load a set of functions directly to the computer memory and call them instead of reading these functions from .m files stored in working folder?
To explain more, assume a script creates a function to be used by fsolve. Instead of creating the function as an m file, can this script store the function directly into memory?

採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 27 日
Anonymous functions are stored in memory, not in .m files. However, anonymous functions must be single expressions and so cannot contain any of the control structures such as for or if or while or switch; also doing assignment inside of anonymous functions is ugly.
  1 件のコメント
S H
S H 2019 年 5 月 27 日
Ok got it. So it is better I do not pursue this idea for now as there is no practical way to do it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by