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

조회 수: 2 (최근 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
Morteza Hajitabar Firuzjaei 2018년 1월 29일
see these files
Morteza Hajitabar Firuzjaei

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by