This is what I've come up with, but which doesn't work:
x = [1 1 0 0 1 0 1 1 1 0 0 0];
c = x+1;
t = 1:length(x);
z = zeros(1,length(x));
This results in an error saying c is invalid.
Level = 1;
AtLevel = (x == Level);
ThinLine = zeros(size(x));
ThickLine = zeros(size(x));
ThinLine(AtLevel) = NaN;
ThickLine(AtLevel) = NaN;
This doesn't give any errors, but also doesn't result in a continuous line.
This is just what I've tried, anything that will help me plot the values in the way I've described would be lovely.
Edit: I'd eventually be plotting multiple different boolean signals, and I'd like them to be on the same plot in a nice way. So one of the lines would be at 0, one at 1, one at 2, and so on. I'd probably do this by making the line as ones(size(x))*n, where n is some integer. That way I can visually represent a bunch of boolean signals as they change over time.