So I need to make a function that will be called as
function [t, pulse] = PAM (array). My function should have a result like this when I use
array = [1 0.3 0.8 0.6], which array is the width of my digital pulsing signal.
Also please not a complete answer, I think it's better to think alone, but I'm in a point that I don't know what to do.