getting values from work space to simulink and simulating a signal
1 次查看(过去 30 天)
显示 更早的评论
THISATH ATTAMPOLA ARACHCHIGE DON
2020-1-31
评论: THISATH ATTAMPOLA ARACHCHIGE DON
2020-2-3
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269288/1122.png)
![11.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269289/11.png)
0 个评论
采纳的回答
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!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!