Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个程序并想在simulink. 我怎样才能将我的粘贴m-file到simulink?
simulink
m-file
该程序外推输入信号。
Input: N-vector (need to collect N values of input signal) Output: number (value of input function in future)
然后重复;
我怎样才能得到N-vector离散signal化时间?
N-vector
signal
2010b之后的simulink中有一个块叫做“嵌入式matlab代码”,你可以在里面定义一个典型的matlab函数,运行simulink的每一个计算步骤。那是你需要的吗?我认为你也可以给你一个“启用”信号块(如果没有,手动做一个输入)只在你想要的时候运行你的代码。希望能帮助到你