I need to make a square wave
조회 수: 1 (최근 30일)
이전 댓글 표시
I need to make a square wave
at 1v for 2000s
then -1v for 2000s
then 1v for 4000s
then -1v for 6000s
then 1v for 2000s
I deally a funtion that can make a square wave from the signal below like in red![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240769/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240769/image.png)
댓글 수: 1
Bjorn Gustavsson
2019년 10월 2일
How I would do this depends on whether the function is supposed to continue somehow periodically after the end of your definition above or if that is the entire domain of your function.
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!