Can I write user defined function in Live script(.mlx) which aexpects user input
古いコメントを表示
I have a .m file that has function with input params which are coming from other functions. When I am trying to convert that .m file to .mlx file It says that "Live Script only support Local functions in scripts" Add code above the function keyword or save the file as a plaintext code file (.m) What does this warning means
回答 (1 件)
Walter Roberson
2017 年 6 月 14 日
0 投票
You asked to create a Live Script, but your file starts with "function". The only time that a "function" definition can appear in a Live Script is if there is non-function code above it. For example, you could insert the calls to input() to fetch the values that you are going to call the function with.
1 件のコメント
Rajiv Kumar
2017 年 6 月 14 日
Thank you for the response.
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!