Hello I'm trying send a square pulse to an arduino board using just coding in matlab no SIMULINK I've used this so far.
while v <=5
for v = [0:0.1:5 5:-0.1:0]
this code helps to dim a light via PWM I was wondering if the pulstran() function would work to generate a square wave I have used this so far.
y = pulstran(t,d,'rectpuls',0.03)
I need to be able to control the pulse width, has anyone done anything like this without using simulink?