Under matlab discrete event system, how do i specify multiple storages connecting to one output port
1 回表示 (過去 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
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!