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

Sumit Tandon
Sumit Tandon 2012년 6월 26일
Are you having difficulty maintaining values of variables over successive time steps? Did you already try using PERSISTENT variables in the MATLAB Function block?
Mohammed
Mohammed 2012년 6월 26일
i don't want to save according to time
Kaustubha Govind
Kaustubha Govind 2012년 6월 26일
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