How can I create vector for values in the range -π < θ < π ?

16 ビュー (過去 30 日間)
Somaya Alaa
Somaya Alaa 2016 年 11 月 27 日
回答済み: Image Analyst 2016 年 11 月 27 日
How can I create vector for values in the range -π < θ < π ?

採用された回答

Image Analyst
Image Analyst 2016 年 11 月 27 日
You can use linspace() to specify the number of elements you want:
margin = 0.0001; % Whatever you want. How close to pi you want to allow.
numElements= 1000; % Whatever you want. How many elements in your vector.
theta = linspace(-pi + margin, pi - margin, numElements);

その他の回答 (1 件)

Stephen23
Stephen23 2016 年 11 月 27 日
編集済み: Stephen23 2016 年 11 月 27 日
  3 件のコメント
Stephen23
Stephen23 2016 年 11 月 27 日
編集済み: Stephen23 2016 年 11 月 27 日
S = 0.01;
T = S-pi:S:pi-S;
Somaya Alaa
Somaya Alaa 2016 年 11 月 27 日
Thank you for your help

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by