フィルターのクリア

how to generate a matrix of 1 by L dimentions contains complex data from real and imaginary components

1 回表示 (過去 30 日間)
how to generate a matrix of 1 by L dimentions contains complex data from real and imaginary components.

採用された回答

José-Luis
José-Luis 2013 年 1 月 29 日
編集済み: José-Luis 2013 年 1 月 29 日
L = 20;
your_mat = randi(100,1,L) + randi(100,1,L) .* 1i;
  4 件のコメント
mary
mary 2013 年 1 月 29 日
the result was :
>> L = 20; your_mat = randi(100,L,1) + randi(100,L,1) .* i
your_mat =
29400016
25500085
9000076
8100004
22500041
24600046
2700035
5400077
11100057
600084
10800025
30000073
4800053
14700003
15300088
1800091
9900072
26700030
21300061
24000039
there is no real and imaginary components!!
mary
mary 2013 年 1 月 29 日
now it worked using 1i.. thanx

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by