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

16 vues (au cours des 30 derniers jours)
Somaya Alaa
Somaya Alaa le 27 Nov 2016
How can I create vector for values in the range -π < θ < π ?

Réponse acceptée

Image Analyst
Image Analyst le 27 Nov 2016
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);

Plus de réponses (1)

Stephen23
Stephen23 le 27 Nov 2016
Modifié(e) : Stephen23 le 27 Nov 2016
  3 commentaires
Stephen23
Stephen23 le 27 Nov 2016
Modifié(e) : Stephen23 le 27 Nov 2016
S = 0.01;
T = S-pi:S:pi-S;
Somaya Alaa
Somaya Alaa le 27 Nov 2016
Thank you for your help

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by