how i can reprenst in matlab?
79 ビュー (過去 30 日間)
古いコメントを表示
%%%Preamble in frequency domain as provided in the wimax standard
%%%These are frequency domain 201 values in the order of 100 negative halves, DC and 100 positive
%%%halves
%%%STEP1
Pall= [1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i ...
-1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i ...
1.0000 + 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i ...
1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i ...
1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i ...
1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i ...
-1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i ...
-1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i ...
1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i ...
-1.0000 - 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i ...
1.0000 + 1.0000i 1.0000 + 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i ...
-1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i ...
-1.0000 + 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i ...
1.0000 + 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i ...
-1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i ...
1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i ...
-1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 0.0000 + 0.0000i -1.0000 - 1.0000i ...
1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i ...
1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i ...
-1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i -1.0000 - 1.0000i ...
-1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i -1.0000 + 1.0000i ...
1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i -1.0000 - 1.0000i ...
-1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i ...
-1.0000 - 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 - 1.0000i ...
1.0000 - 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i ...
-1.0000 - 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i ...
1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i ...
1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 + 1.0000i ...
1.0000 + 1.0000i -1.0000 - 1.0000i 1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i ...
-1.0000 + 1.0000i 0.0000 + 0.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i -1.0000 - 1.0000i ...
-1.0000 - 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i 1.0000 - 1.0000i ...
-1.0000 + 1.0000i -1.0000 + 1.0000i -1.0000 + 1.0000i 1.0000 - 1.0000i -1.0000 + 1.0000i 1.0000 + 1.0000i ..
1.0000 + 1.0000i 1.0000 + 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i -1.0000 - 1.0000i ...
1.0000 + 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i]
2 件のコメント
採用された回答
Steven Lord
2025 年 11 月 20 日 6:02
移動済み: Cris LaPierre
2025 年 11 月 21 日 15:54
It's not clear to me what the question is, unless it's "How can I populate a vector with multiple copies of numbers without typing them explicitly?" If that is the question see the repmat or repelem functions or just use multiplication or indexing.
re = [1 1 -1 -1];
im = [1 -1 1 -1];
x = complex(re, im)
y = repmat(x, 2, 2)
z = repelem(x, [4 2 5 3])
w = x(ones(3, 3))
v = x(2)*ones(4)
Depending on what you're planning to do with these numbers later, the cplxpair function may also be of use.
2 件のコメント
Tom Tutin
2025 年 11 月 21 日 3:56
移動済み: Cris LaPierre
2025 年 11 月 21 日 15:54
That's it! Thanks Steven!
Kane
2025 年 11 月 25 日 3:52
Good Lord! Hes got the answer. I am happy to see it will also work in R2018.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Color and Styling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!