How can I Import complex vector to SIMULINK to analyze it using spectrum analyzer?

4 ビュー (過去 30 日間)
Abdelwahab Afifi
Abdelwahab Afifi 2019 年 10 月 8 日
回答済み: Sulaymon Eshkabilov 2019 年 10 月 9 日
1- I'm trying to use From work space to import complex vector to simulink
2- I get this error message:
"Unsupported input format for From Workspace block 'SISO/From Workspace'. Available formats are double non-complex matrix, a structure with or without time, or a structure with MATLAB timeseries as leaf nodes. All formats require the data to be finite (not Inf or NaN)."

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 10 月 9 日
Hi,
In this case, the solution can be to feed your model with the real part and imaginary part of your input data (complex valued) and then after Simulink model simulations sum up the computed results in MATLAB. In this case, you'd need real(), imag() fcns to separate the input data.
Good luck.

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by