What are the commands for a function that allows the user to input arguments and store them in the variables x and y?
1 回表示 (過去 30 日間)
古いコメントを表示
What are the commands for a function that allows the user to input arguments and store them in the variables x and y?
0 件のコメント
回答 (2 件)
Iain
2014 年 2 月 19 日
Can you be more specific?
How do you want the user to input arguments?
The functions, "input", "inputdlg", "uigetfile", all come to mind as being functions that could do the job, depending on what the job is. Look at the help for them and you should find what you need.
0 件のコメント
Tucker Russ
2014 年 2 月 19 日
1 件のコメント
Star Strider
2014 年 2 月 19 日
Search on the terms Iain suggested. The documentation has examples and links to related functions at the end of each page.
To open the documentation, click on the ‘ ? ’ in ‘RESOURCES’ just above the main command window, or type one of the terms in the Editor and right-click on it, then click on ‘Help on selection’ in the dropdown menu that appears.
参考
カテゴリ
Help Center および File Exchange で Workspace Variables and MAT-Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!