No Any Variable appears in workspace ?

There is no any variable in workspace when iam doing co-simulation in optiSystem. any Solution for this?? The script is below:
%
% This program simulates a Binary XOR Gate
% There is no input parameter for this example
% Creating an output structure similar to the input
OutputPort1 = InputPort1;
% Defining the parameter if applicable
%Param = Parameter0;
if strcmp(InputPort1.TypeSignal, 'Binary')
cs = length(InputPort1.Sequence);
if( cs > 0 )
for m = 1 : cs
if InputPort1.Sequence(m) == InputPort2.Sequence (m)
OutputPort1.Sequence(m) = 0;
else
OutputPort1.Sequence(m) = 1;
end
end
end
end

3 件のコメント

jale wohn
jale wohn 2022 年 5 月 8 日
編集済み: jale wohn 2022 年 5 月 8 日
Hi Arif, I have the same problem as you asked before, could you solve the problem?
Walter Roberson
Walter Roberson 2022 年 5 月 8 日
That code will always create the output port in the workspace it is executing in, unless it crashes. However if the port is not binary then it will not produce any additional outputs.
Salem
Salem 2025 年 10 月 22 日
Hi Arif
did you able to solve this problem?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2017 年 8 月 16 日

コメント済み:

2025 年 10 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by