How can I create vector for values in the range -π < θ < π ?
17 ビュー (過去 30 日間)
古いコメントを表示
How can I create vector for values in the range -π < θ < π ?
0 件のコメント
採用された回答
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);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!