Hi, if you have the Signal Processing Toolbox, see
>>doc triang
Wayne
Simply you can do like this: plot(repmat([0.1:0.1:1 0.9:-0.1:0],1,10))
In this case I make one period of triangle and repeate it 10 times.
Best Regards,
Ivan
That should be 0.9:-0.1:0.1
With the current code, you would get two 0's in a row.
Actually, 0.9:-0.1:0.1 gives no 0's in a row.
This was one of those cases that was too simple to test right?
Dale B. Dalrymple
Dang, I should wait until my eyes clear in the morning before posting.