Effacer les filtres
Effacer les filtres

データディクショナリ​の変数をmatファイ​ルからインポート(i​mport data dictionary variables from a mat file)

2 vues (au cours des 30 derniers jours)
tsuyo0000
tsuyo0000 le 5 Déc 2018
Modifié(e) : tsuyo0000 le 5 Déc 2018
データディクショナリの変数をmatファイルからインポートし,simulinkでデータディクショナリから変数を読み込みたいと考えています.
myDictionaryObj = Simulink.data.dictionary.open('DataDictionary.sldd');
dDataSectObj = getSection(myDictionaryObj,'Design Data');
importFromFile(dDataSectObj,'matlab.mat','existingVarsAction','overwrite');
上のコードを試しましたが,matファイルの変数がデータディクショナリの変数に上書きされません.どのようにすれば解決できるのでしょうか.
________________________________________________________________
I would like to import data dictionary variables from a mat file and read variables from the data dictionary with simulink.
myDictionaryObj = Simulink.data.dictionary.open('DataDictionary.sldd');
dDataSectObj = getSection(myDictionaryObj,'Design Data');
importFromFile(dDataSectObj,'matlab.mat','existingVarsAction','overwrite');
I tried the code above, but variables in the mat file will not be overwritten by variables in the data dictionary. How can we solve it?

Réponses (0)

Catégories

En savoir plus sur 設計データの管理 dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!