Outputting data generated from a SimEvents model
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
John
el 17 de En. de 2017
Respondida: Chinmayi Lanka
el 19 de En. de 2017
The attribute scope of the attached model displays a scatterplot of a time (x-axis) versus the triangular distribution of 1000 samples (y-axis). Is there some way to output the y-axis data so that I can produce a histogram of the data? Thanks in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159851/image.jpeg)
John
0 comentarios
Respuesta aceptada
Chinmayi Lanka
el 19 de En. de 2017
You cannot directly log the data from the Attribute scope.
One possible way to extract the data is to save it as a MATLAB Figure and then extract the data from the figure.
After you save the figure, open the figure and obtain a handle to the figure. You can use following command to obtain a handle to the current figure:
>>figHandle = gcf
You can extract the y-axis data using the following commands:
>> axesHandle = figHandle.Children(8);
>> lineHandle = axesHandle.Children(1);
>> yaxesData = lineHandle.YData;
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre SimEvents en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!