how to shift a step-plot(input)
Afficher commentaires plus anciens
Hello. I am struggeling with Matlab. My knowledge about it, is very limited. Let me introduce myself. My name is Bob,this year i am following a course digital control and this is the first year that i am confronted with Matlab. I want to shift only the step-plot(grey line) 0,25 seconds to the left so that the step wil begin at zero in stead of 0,25seconds. For clarity, the vertical part of the grey line must begin at zero in stead of 0,25sec. First i tried to subtract 0,25 from tsample in line 17--->"plot(tsample-0,25,input,'b')" But that does not work. Then I tried something with "circshift" but without result. I think it must be done in line 17 or before it. In the appendix you can find the .m file and .mat file to run the plot.(you can ignore the bode-plot). So how can i shift the grey input-line(step) with 0,25seconds to the the left?? Thank you in advance.
Réponse acceptée
Plus de réponses (1)
bob de vrij
le 5 Mar 2016
0 votes
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!