matlab - 声明 Simulink 模型变量的 Matlab 脚本
问题描述
它手动工作(我在 Simulink GUI 上单击“运行”,它给了我三个输出)。我正在使用 Matlab SIMSET 工具编写脚本来定义必要的变量并调用此模型以运行它:
Constant=43;
Constant1=43;
Constant2=43;
Constant7=43;
Constant10=43;
Constant11=43;
t_stop = 100;
T_s = t_stop/1000;
options = simset('solver', 'ode5', 'fixedstep', T_s);
sim('test_lau.slx',t_stop,options)
我知道接口“EC”和“UL”每个都输入一个向量,但是即使我在脚本中定义了两个向量,如何将它们分配给“EC”和“UL”?
预先感谢您的帮助!
解决方案
推荐阅读
- android - Android 暗模式打破覆盖的转换
- c# - power point interop API - TextRange 中的多段无法正常工作
- c++ - 以 size_t 为起点的 C++ 擦除向量部分
- google-bigquery - 用于从 BigQuery 查询数据、将结果导出为 CSV 格式以及 sFTP 传输到目标文件夹的脚本
- r - R:如何将两列合并为一列(对于记录器列,而不是按列合并)
- reactjs - 为什么我得到:在返回的组件实例上找不到`render`方法:您可能忘记定义`render`
- ssh - ansible AWX 库存冲突
- php - imap_fetchbody 返回奇怪的字符串
- excel - 如果标题相同,比较两个工作表并将数据从一个工作表附加到另一个工作表
- c# - Microsoft.NET.Test.Sdk 和
真的 对于 COM 互操作 - 互斥?