workspaceの値をGAで使用したい
Show older comments
以下に示すような式を遺伝的アルゴリズム(GA)で最適化したいです.以下に示す式のqはワークスペースに定義されている値を使うつもりでしたが,GAを実行すると 「関数または変数 'q' が未定義です。」 とエラーが出ます.ワークスペースの値を使うことはできないのでしょうか.ちなみにqはsimulinkのモデルから出力された1×11の行列です.
3 Comments
michio
on 24 Jan 2017
関数はまた別のワークスペースを別に持つので、おっしゃるワークスペース(ベースワークスペース)の変数を直接は使用できません。
使用する方法はありますので ga を実行しているコマンド文を見せて(コピペして)いただけますか?
fumito ito
on 25 Jan 2017
Edited: fumito ito
on 25 Jan 2017
fumito ito
on 25 Jan 2017
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!