Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Simulink: combine real and complex signals

Asked by Steven Huang on 26 Nov 2012

I want to combine real and complex signals into a vector (or bus). But neither the Selector nor BusCreator was able to combine these data types into a vector. I would like to know why and if there are blocks to do that before I use real-imag to complex block.

Thanks.

3 Comments

Jon on 4 Dec 2012

I would like to second this question.

TAB on 5 Dec 2012

It is possible to combine the Real & Imaginary signal into a Bus Signal using Bus creator.

Can you please describe your case, what & how you are doing your implementation.

Jon on 5 Dec 2012

I was unable to re-create the issue in a small scale model. There appears to be a bug in Simulink's algorithm for resolving signal complexity.

I eventually got my model working by fixing what one of my co-workers described as a 'straight pass through'. In this case, I had unbussed my real and complex signals, and did not modify the real signal before re-bussing. For some reason this messed up Simulink's ability ot parse the signal complexity. To fix this issue, I placed a signal conversion block (set to contiguous copy) on the unmodified line before re-bussing. Problem solved, even though no substantive changes had been made to the model.

Steven Huang

Products

1 Answer

Answer by Babak on 5 Dec 2012

In Simulink there are blocks that handle complex numbers.

Open the Simulink Library browser and in the search box on the top toolbar, search for complex, you will see those blocks.

0 Comments

Babak

Contact us