Matlab function block

how to change values of vector element according to a counter
like if the counter =1 then write at element one of the vector m the value of 100 m(1)=100 m(2)=200 as values 100 , 200 will be a input

3 个评论

Are you having difficulty maintaining values of variables over successive time steps? Did you already try using PERSISTENT variables in the MATLAB Function block?
i don't want to save according to time
Your question is not clear. Is your question about "how to implement a counter", or about how to write elements to a vector (which it appears you already know how to do)?

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Functions 的更多信息

产品

标签

提问:

2012-6-26

Community Treasure Hunt

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

Start Hunting!

Translated by