Skip input function in script

5 ビュー (過去 30 日間)
Robert Jacobsen
Robert Jacobsen 2016 年 6 月 18 日
回答済み: Walter Roberson 2016 年 6 月 19 日
In the Wavelab package ( http://statweb.stanford.edu/~wavelab/ ) the path is set by running the included `WavePath.m` that asks for the top level directory of WaveLab using the `input` function.
I would like to run a script that sets the path for Wavelab. I imagine this could be done by `cd`-ing to the location of Wavelab and run `WavePath`. However, I do not want to type/copy the path of WaveLab every time.
Is there a way to give the path as an argument to `ẀavePath.m` that will be passed to `input`?

採用された回答

Walter Roberson
Walter Roberson 2016 年 6 月 19 日
There is no way to "queue" an input for use by a later input() call.

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by