最近,我一直在尝试在simulink中模拟模型。我想使用For Iterator来运行系统,我尝试使用代码来表达它。
int local_time;
for(local_time=9; local_time<=17; local_time=local_time+1)
{
a=local_time+b; //One equation using local_time as input
sin c=(cos a)*(cos b);//another 2 equation need a as input
cos d=(sin a)*(cos C);//the equation will calculate using different
//local_time from 9 to 17
}
可以使用Simulink'For Iterator'完成吗?我是否需要将方程式块放入“ For Iterator”块中?