多步长仿真如何在Simulink中实现?。
39 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
wohotef
el 30 de Nov. de 2022
Respondida: jalaga
el 30 de Nov. de 2022
如题目所示,若我需要在一个模型中搭建A、B两个模块,其中A模块的输出将作为B模块的输入,我想令A模块的计算步长为1s、B模块的计算步长为10s,当A模块运行10次(即10s)时,B模块只运行1次(同样经历10s)。请问各位大神有什么办法可以实现?
0 comentarios
Respuesta aceptada
jalaga
el 30 de Nov. de 2022
Simulink有一个基础步长,就是你在configuration--》solver里面设置的步长。
然后可以对subsystem 、block单独设置各种步长,但这些自定义的步长需要是基础步长的整数倍。
按照你这种情况,基础步长可以设置为1, 对B subsystem右键property,sample time设置为10就可以了。
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre PHY Components en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!