Running m -files repeatedly

5 ビュー (過去 30 日間)
Christopher Bishop
Christopher Bishop 2016 年 8 月 26 日
回答済み: Greg Heath 2016 年 8 月 27 日
Hello, I have an MATLAB script called basicscript.m which is a modified version of the neural network pattern recognition tool pattern.net. The network works fine with my input and target data. I want to repeatedly run the script with the same input and target data to observe changes in the perfomnace (e.g trainperf etc) as the weights are randomised each time the script is run. Ideally, I want to be able to 1. Load the script up with my input and target data once. 2. Repeatedly run the script with the same data by simply pressing a key (say 'C') on the keyboard without having to load the same data each time which is cumbersome. Is there a way to do this in MATLAB without having to load the same data each time. Thanks in advance Chris Bishop

採用された回答

Greg Heath
Greg Heath 2016 年 8 月 27 日
I have posted zillions of examples w.r.t. multiple designs differing by number of hidden nodes and initial random weights.
Search the NEWSGROUP and ANSWERS using
greg Ntrials Hub
Hope this helps.
Thank you for formally accepting my answer
Greg

その他の回答 (1 件)

Pawel Ladosz
Pawel Ladosz 2016 年 8 月 27 日
Hi Chris,
I am not sure how to make your script run upon a key press, but to load a data you could use a load() function in matlab, while to run it a few times you could use a for loop?

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by