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

16 次查看(过去 30 天)
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

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by