how separate the complex number as shown in the explain as following?

1 回表示 (過去 30 日間)
abdullah qasim
abdullah qasim 2019 年 1 月 4 日
コメント済み: abdullah qasim 2019 年 1 月 5 日
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

採用された回答

KSSV
KSSV 2019 年 1 月 4 日
Simple either concatenate them or use vertcat.
s = rand(100,1)+1i*rand(100,1) ;
iwant = [real(s) ; imag(s)] % concatenate
iant = vertcat(real(s),imag(s)) % use vertcat

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSignal Generation, Manipulation, and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by