Signal builder output.

How can i make my Signal Builder to output all the values not only the last one? For eg. i have a a simple square signal from 0 to 2. It would like it to output 2, 0, 2, 0, and so on, but it only outputs 0, so the last value i guess. I want to create a simulation for a line follower robot with arduino, and i need to test my simulation with input values of 1 and 0. Let's say, that it outputs 1 for 5 seconds but after that i want to change it to 0, then back to 1 again and so on, without stoping and restarting my simulation. Can it be done?

2 Comments

Birdman
Birdman on 15 Apr 2020
Yes of course. What is the shape of the desired signal? Can you draw it?
Yes, i'd like something like this:
I did this in the Signal Builder but i don't know what i have to do next.

Sign in to comment.

Answers (0)

Asked:

on 15 Apr 2020

Commented:

on 15 Apr 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!