How do I get the time of an event in Matlab from a SimEvent model?

조회 수: 3(최근 30일)
Zahra Moussavi
Zahra Moussavi 2016년 2월 2일
How can I write the times and values of an event-based signal to the MATLAB workspace (<>) when I am running the simulation from Matlab?
Here is my code:
clc clear all close all
Period = 0; p=1;
for i=1:1;
simOut= sim('concreting1','SaveOutput','on',...
z = simOut.get('WaitingInQueue')
r= simOut.get('Pump')
and my model:
the r give me the number of entity that left the server and t give me the simulation time not the time of the signal. I need the former.


Community Treasure Hunt

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

Start Hunting!

Translated by