How to create this matrix without hardcoding the values

1 回表示 (過去 30 日間)
Tyrel Cadogan
Tyrel Cadogan 2019 年 2 月 3 日
コメント済み: Tyrel Cadogan 2019 年 2 月 3 日
13 -1 5
-22 10 -87
  6 件のコメント
Tyrel Cadogan
Tyrel Cadogan 2019 年 2 月 3 日
Yes no problem. They are much simpler ways of taking the same approach but i was just curious to see if there really was a function in matlab where i can create the matrix without hardcoding. I guess there isnt but thanks alot .
Tyrel Cadogan
Tyrel Cadogan 2019 年 2 月 3 日
I appologise if you i have done any wrong. Thanks again.

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

採用された回答

the cyclist
the cyclist 2019 年 2 月 3 日
編集済み: the cyclist 2019 年 2 月 3 日
Here is one way.
r = [ 1.5355 + 0.0000i
-1.0914 + 1.0781i
-1.0914 - 1.0781i
0.3621 + 1.3117i
0.3621 - 1.3117i]';
p = reshape(round(13*poly(r)),[3 2])';

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by