How do I center my time-history plot at zero using code
Mostrar comentarios más antiguos
Hello all,
How can I make the plots of each time-history to be centered at zero using code? I usually manually add or substract the required amount from my data. As-per the example below. I wish to automate the centering of my plots.
Original code :
plot(t,x,t,x2,'r')
Revised Code (not the best solution)
plot(t,x-0.038,t,x2-0.003,'r')
Original:

Revised:

Thank you in advance
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Measurements and Feature Extraction 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!