Hi Carlos,
Many way to do this. For a piecewise cont func try this
t=[0:0.1:32];
y = 40/32*t;
plot(t,y)
hold on
t1 = [32:0.1:100];
y1 = 40*ones(size(t1));
plot(t1,y1)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!