MATLAB Answers

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

10 views (last 30 days)
Abdelwahab Afifi
Abdelwahab Afifi on 8 Oct 2019
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)."

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 9 Oct 2019
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.

Community Treasure Hunt

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

Start Hunting!

Translated by