Mercurial > repos > vipints > rdiff
view rDiff/src/locfit/m/plotbyfactor.m @ 3:29a698dc5c7e default tip
Merge multiple heads.
author | Dave Bouvier <dave@bx.psu.edu> |
---|---|
date | Mon, 27 Jan 2014 14:15:36 -0500 |
parents | 0f80a5141704 |
children |
line wrap: on
line source
function plotbyfactor(x,y,f) % % very simplistic version of plotbyfactor. % no symbols, will crash if more than 8 levels. % z = unique(f); cols = ['b','r','g','m','c','y','k','w']; for (i = 1:length(z)) u = find(f==z(i)); plot(x(u),y(u),'.','color',cols(i)); hold on; end; hold off; return;