How can I create vector for values in the range -π < θ < π ?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Somaya Alaa
el 27 de Nov. de 2016
Respondida: Image Analyst
el 27 de Nov. de 2016
How can I create vector for values in the range -π < θ < π ?
0 comentarios
Respuesta aceptada
Image Analyst
el 27 de Nov. de 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);
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!