Create vector with variable spacing
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nicole Kresse
el 20 de Oct. de 2022
Comentada: Jesse
el 24 de Mzo. de 2024
I am looking to create an array with variable spacing. I am trying to go from 0 to 360, with the spacing .0624, 0.054, 0.0636.
So the result would be: 0, 0.0624, .1164, .18, .2424, .2964...continuing to rotate adding through those 3 values up to 360.
PRI = [0.0624 0.054 0.0636]; %Deg per PRI
Bearings = 0:PRI:360;
0 comentarios
Respuesta aceptada
Más respuestas (1)
David Hill
el 20 de Oct. de 2022
Use a cell array.
PRI = [0.0624 0.054 0.0636];
for k=1:3
P{k}=0:PRI(k):360;
end
P
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!