フィルターのクリア

How can I apply data in function?

51 ビュー (過去 30 日間)
병욱
병욱 2024 年 7 月 11 日 14:47
編集済み: Walter Roberson 2024 年 7 月 11 日 21:02
wanna show data in function as val = ~ How can I do this....

採用された回答

Steven Lord
Steven Lord 2024 年 7 月 11 日 15:07
I'm not sure I understand your question.
Are you asking about how to pass input arguments into a function? If so see this documentation page.
Are you asking how to prompt the user to enter data interactively inside your function? If so look at the input or inputdlg functions, but realize that if you call those functions inside your function then every time your user calls your function they will need to enter the data; you can't call input or inputdlg but "automatically fill in the data".
Are you asking how to ignore input arguments or output arguments in a function definition or a function call respectively? See this documentation page for inputs and this page for outputs.
If those aren't what you were asking, please add some clarification about what exactly you're trying to do.
  5 件のコメント
Steven Lord
Steven Lord 2024 年 7 月 11 日 19:24
Debugging that to figure out what's creating / populating that variable is going to be extremely painful since you're dynamically creating / populating those variables with eval. Use one of the techniques on that page to which I linked to eliminate your usage of eval and it may be easier to debug the code.
병욱
병욱 2024 年 7 月 11 日 19:38
Thank you for your support, I really appreciate. Have a nice day.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by