workspaceの値をGAで使用したい
Afficher commentaires plus anciens
以下に示すような式を遺伝的アルゴリズム(GA)で最適化したいです.以下に示す式のqはワークスペースに定義されている値を使うつもりでしたが,GAを実行すると 「関数または変数 'q' が未定義です。」 とエラーが出ます.ワークスペースの値を使うことはできないのでしょうか.ちなみにqはsimulinkのモデルから出力された1×11の行列です.
3 commentaires
michio
le 24 Jan 2017
関数はまた別のワークスペースを別に持つので、おっしゃるワークスペース(ベースワークスペース)の変数を直接は使用できません。
使用する方法はありますので ga を実行しているコマンド文を見せて(コピペして)いただけますか?
fumito ito
le 25 Jan 2017
Modifié(e) : fumito ito
le 25 Jan 2017
fumito ito
le 25 Jan 2017
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!