Using "from file block" not working
显示 更早的评论
Hi,
I'm trying to plot (using Scope) in Simulink the values of a potentiometer and the time this data was recorded from a .mat file from Matlab. My intention is to do something more complex but I have to understand how the block works. It looks easy but I cannot get Simulink running more than 10 seconds and the timestamps are 152 seconds.
I explain the steps I did and maybe you can guess where is my error:
Well, first of all here it is my easy block and scope, easy:

The block parameters are the following ones:

The .mat file is as follows:



The thing is that when I do the simulation it only makes this:
As you can see it only runs until 10 seconds and I want Simulink to plot every point of data of the second row with the matching point of time of the first row but I can't find the way.

Thank you in advance
回答(2 个)
Fangjun Jiang
2019-8-30
0 个投票
Change your simulation "Stop Time" from 10 (default) to whaever you want.
类别
在 帮助中心 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


