How to create a matrix[15*1], in which i need to change the value of particular element during simulation.

3 次查看(过去 30 天)
How to create a matrix[15*1], in which i need to change the value of particular element during simulation.And the rest of the values should remain same.simulink approach is highly appreciable.
  1 个评论
Rik
Rik 2018-1-29
I have never really worked with simulink, but in Matlab itself, creating a matrix is almost trivial: A=zeros(15,1); Accessing is also something a crash course (like e.g. this one) in Matlab will teach you in the first lesson: A(i)

请先登录,再进行评论。

采纳的回答

Birdman
Birdman 2018-1-29
The attached model should do it for you. I created a 15-element column vector and in simulation, you can change one of its element to a value that you specify. Adapt it into your problem. Hope this helps.
  4 个评论

请先登录,再进行评论。

更多回答(1 个)

Morteza Hajitabar Firuzjaei
see these files
Morteza Hajitabar Firuzjaei

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by