how to shift a step-plot(input)
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!