Help aligning two vectors with one centred on zero.
Mostrar comentarios más antiguos
I have a set of x values:
x1=-31, -15.5, 0, 14.9,30.2
I know that the separation should be 15 (=pitch) so I want to plot x1 against xreal then do a fit and look at the largest deviation.
I can create:
xreal=Pitch*((1:numel(x1)));
But I can't figure out how to align them AROUND 0,e.g
xreal = -30, -15, 0 , 15, 30
then I can easily plot x1 against xreal and linearly fit.
Respuesta aceptada
Más respuestas (2)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!