필터 지우기
필터 지우기

Under matlab discrete event system, how do i specify multiple storages connecting to one output port

조회 수: 2 (최근 30일)
For example:
function [storageSpecs, I,O] = getEntityStorageImpl(obj)
storageSpecs = [...
obj.queuePriority('student', 25, 'age', 'ascending'), ...
obj.queueFIFO('student', 10)];
I = 2;
How do I specify that the output port is connected to both storage

답변 (1개)

Sérgio Lopes Jr
Sérgio Lopes Jr 2017년 11월 19일
The "I" and "O" arguments are cell vectors in which each cell is the output port. So, in your case, if there isn't any other output ports, you can use:
O = {[1 2]};
Hope it helps.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by