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

3 views (last 30 days)
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
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.

Categories

Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!