필터 지우기
필터 지우기

getting values from work space to simulink and simulating a signal

조회 수: 1 (최근 30일)
I want to get values on the 58th row of a 59x56596 matrix and simulate a signal in realtime. at a sampling rate of 0.004sec (The rate at which data was collected).Please let me know how I can do it.
Thanks
1122.PNG
11.PNG

채택된 답변

Divya Yerraguntla
Divya Yerraguntla 2020년 2월 3일
Hi,
I am assuming you want to acess the 58th row of a workspace variable at a sampling rate of 0.004sec. This could be done by using a constant block instead of From Workspace block in Simulink with a value
wsvar(58:end) %% wsvar = workspace variable of size 59*56596
and setting the Sample Time of constant block as 0.004 sec.
Hope it helps!
  댓글 수: 1
THISATH ATTAMPOLA ARACHCHIGE DON
Thank you, i was also able to use access the 58th row framewise using the From workspace block.Setting the sampling rate at From workspace block.
xxxxxxx.JPG

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by