Read input matrix inside a function
古いコメントを表示
I have a numerical array 'drop' setup in my Matlab workspace.
I can read the array into an interactive Matlab script using the prompt:
F = input(' Enter the matrix name: ')
This works fine in a main script.
However, when I place this same command inside a supporting function file called by the main script, I get the following error message upon execution:
??? Error using ==> input Undefined function or variable 'drop'
Please help. Thank you. Tom
採用された回答
その他の回答 (1 件)
Tom Irvine
2011 年 12 月 13 日
カテゴリ
ヘルプ センター および File Exchange で Variables についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!