Plot with intervals for x axis
5 views (last 30 days)
I am plotting a graph with the following code:
P1=plot(x,poweachslot,'displayname','Load curve without DSM' );
P2=plot(x,poweachslot1,'displayname','Load curve with DSM' );
title('Daily load curve')
This gives me a graph which is like joining the dots for each x value( not able to insert the graph)
How do I get a graph where from x=1-2, y=const1, x=2-3 y=const2 etc..