Computational Intelligence, SS08 2 VO 442.070 + 1 RU 708.070 last updated:
General
Course Notes (Skriptum)
Online Tutorials
 Introduction to Matlab Neural Network Toolbox OCR with ANNs Adaptive Filters VC dimension Gaussian Statistics PCA, ICA, Blind Source Separation Hidden Markov Models Mixtures of Gaussians Automatic Speech Recognition
Practical Course Slides
Homework
Exams
Animated Algorithms
Interactive Tests
Key Definitions
News
mailto:webmaster

# Creating Graphs

To open a new figure with handle 1 type
```>> figure(1); clf;
```
whereas 1 clears the current figure. For this demonstration please load the variables C and X form the file winedata.mat
```>> load winedata X C
```
X is a 2 dimensional matrix, where each column specifies a point in the 2 dimensional plane. The corresponding element of the vector C defines to which class a point belongs. To plot the point sets of all three classes in different styles type
```hold on
plot(X(C==1,1),X(C==1,2),'ro');
plot(X(C==2,1),X(C==2,2),'bs');
plot(X(C==3,1),X(C==3,2),'g*');
```
The command hold on holds the current plot and all axis properties so that subsequent graphing commands add to the existing graph. To label the axis use
```xlabel('Markmal 1');
ylabel('Markmal 2');
```
```legend('Klasse 1','Klasse 2','Klasse 3');
```>> graf2d