Mercurial > repos > vipints > rdiff
comparison rDiff/src/locfit/m/plotbyfactor.m @ 0:0f80a5141704
version 0.3 uploaded
author | vipints |
---|---|
date | Thu, 14 Feb 2013 23:38:36 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0f80a5141704 |
---|---|
1 function plotbyfactor(x,y,f) | |
2 % | |
3 % very simplistic version of plotbyfactor. | |
4 % no symbols, will crash if more than 8 levels. | |
5 % | |
6 | |
7 z = unique(f); | |
8 cols = ['b','r','g','m','c','y','k','w']; | |
9 | |
10 for (i = 1:length(z)) | |
11 u = find(f==z(i)); | |
12 plot(x(u),y(u),'.','color',cols(i)); | |
13 hold on; | |
14 end; | |
15 hold off; | |
16 | |
17 return; |