Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Error in Output when transforming matrix into vector

1 回表示 (過去 30 日間)
ARIF HUSSAIN
ARIF HUSSAIN 2017 年 8 月 14 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
When I'am converting matrix into vector and I'am assigning that vector output to some variable ,it does't give me any vector output but only shown is OutPutPort1 = Sequence: [1x60 double]. Can someone please help me to resolve this issue that i may get correct output in form of vector ?
  2 件のコメント
Image Analyst
Image Analyst 2017 年 8 月 14 日
You'll have to wait for Walter. He's the only one with a fully working version of the Crystal Ball Toolbox. The rest of us need to see your actual code.
John BG
John BG 2017 年 8 月 17 日
Arif
please attach the code to your question, or copy paste it in the question.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 8 月 14 日
You are outputing a struct with a field named 'Sequence' instead of assigning the content of the field.
  2 件のコメント
ARIF HUSSAIN
ARIF HUSSAIN 2017 年 8 月 14 日
編集済み: ARIF HUSSAIN 2017 年 8 月 14 日
Ok sir thanks for reply, but how may i change this now to get correct output? Actually I'am writing this code for Co-simulation with OptiSystem that's why I'am assigning the output to OutputPort.Sequence.
Walter Roberson
Walter Roberson 2017 年 8 月 14 日
Sorry, you have contradictory requirements. You require your output to be a structure for use with OptiSystem, but you require your output to be a vector for some other purpose. You cannot have it both ways.
You can see the content of the vector by asking to display
OutPutPort1.Sequence

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by