How to plot continuous on off signal using mod-command
이전 댓글 표시
Hi
I need to figure out how to generate a simple continuous on-off signal, by using mod-command.
Got an m-function already
function y=jj(x,a,b)
y=a+mod(x-a,b-a);
The solution must be very simple, but I can't get my head to figure it out.
The sample graf that I have is attached.

Hope you understand my dilemma.
Thanks
Tahma
댓글 수: 2
Jan
2017년 4월 17일
The question is not clear. You cannot "create a continuos signal". So please explain, what you want to get as output. What is x, a and b in your code?
Tero Ahmavuo
2017년 4월 19일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!