complex number separate the real signal about imag signal

7 views (last 30 days)
I have a problem with the complex number
comp=a+ib
a1+ib1
a2+ib2
...
...
..
an+ibn
then I separated the real signal about the imaginary signal like this;
real(comp)
imag(comp)
the result is
a
a1
a2
.
.
an
and
b1
b2
.
.
bn
my problem how can I put the sequence the real signal after imag signal as the follow
a
a1
a2
.
.
an
b1
b2
.
.
b2n
  1 Comment
Muhammad Afdal Bau
Muhammad Afdal Bau on 1 Feb 2023
how can i separated about real and imaginary part plot of quaternion function in laplacian using matlab

Sign in to comment.

Accepted Answer

Jacob Shulman
Jacob Shulman on 4 Jan 2019
Im not really sure what your asking but if the real part and imaginary part are stored in different arrays you can combine them using
a=real(comp);
b=imag(comp)
c=[a,b];
or look into using the cat function to concatenate them

More Answers (0)

Community Treasure Hunt

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

Start Hunting!