From: sscnekro on
> ok ill show you exactly what I mean,
> 3 sets of data:
> time, deg, num

Okay, ronnie. A must reading for you:
http://www.cs.bilkent.edu.tr/~duygulu/Courses/CS111/Notes/LogicalAndRelationalOperators.pdf

A PS just whispered .. is this what you wanted?

x = [1;2;3;4;5;6;7]; % time
y = [10;20;30;40;50;60;70]; % num
deg = [45;56;90;23;34;145;22];
iy = (deg >= 45); % create logical
line(x(iy),y(iy),'marker','s','color',[1,0,0]);
line(x(~iy),y(~iy),'marker','o','color',[0,1,0]);

Thanks, us.
First  |  Prev  | 
Pages: 1 2
Prev: Callback syntax
Next: convert a number to string