フィルターのクリア

cant read complex numbers with 'From Workspace' in simulink

5 ビュー (過去 30 日間)
apchar
apchar 2013 年 4 月 29 日
コメント済み: Abdelwahab Afifi 2019 年 10 月 8 日
I have a simple simulink model (simtest) that gets it's data from the 'From Workspace' block. I'm running it with sim('simtest'). It works fine for real numbers but when I try to read a complex number it says: Unsupported input format for From Workspace block 'simtest/From Workspace'. Available formats include: (1) a double non-complex matrix, (2) a structure with or without time, (3) a Simulink.Timeseries object. All formats require the data to be finite (not Inf or NaN).
I need complex numbers. I'd hate to split it into 2 vectors. Blech. How do I read complex numbers with From Workspace ?
  1 件のコメント
Abdelwahab Afifi
Abdelwahab Afifi 2019 年 10 月 8 日
I have the sam eproblem, any solution?

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

回答 (1 件)

apchar
apchar 2013 年 4 月 29 日
Got it. It's a stupid solution but apparently you have to bundle complex numbers into a structure to pass them through 'From Workspace'. One for the archives.
  1 件のコメント
Roozbeh
Roozbeh 2013 年 8 月 7 日
I have the same problem. Can you tell me how you made it in structure form and the way you recall it in simulink.

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

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by