File Exchange

## Introduction to Classification

version 1.0.0.1 (353 KB) by Richard Willey

### Richard Willey (view profile)

Files and code from Computational Statistics: Getting Started with Classification using MATLAB®

Updated 01 Sep 2016

This code is provides a simple introduction to some of the Classification capabilities in Statistics Toolbox. Key techniques used include
Using normplot to see whether features are normally distributed.
Using coercoff to look for correlation between features.
Using cvpartion to separate data into a test set and training set.
Training Naive Bayes classifiers and ensembles of decision trees.
Using sequentialfs to simplify a model

### Cite As

Richard Willey (2019). Introduction to Classification (https://www.mathworks.com/matlabcentral/fileexchange/28770-introduction-to-classification), MATLAB Central File Exchange. Retrieved .

### Comments and Ratings (23)

Spyros Vlachospyros

Krishna V

Lucy Sinha

### Lucy Sinha (view profile)

Is it working for any type of data set??

Pravina K

pooja patil

### pooja patil (view profile)

can I get Matlab code for fuzzy c classifier or any other classifier that can perform on a satellite image?

claus becker

### claus becker (view profile)

Not so well introduced, I think. My understanding is that the code is an example of the feature selection technique. You can refer to the following documentation link for more details of the process:

https://www.mathworks.com/help/stats/feature-selection.html

The functionality of the code is to select the columns (variables) of the data from columns 1 to 11 in "White_Wine.xlsx" with which the best classification result can be achieved. In this case, the last column, "Quality" corresponds to the different class of this classification example

claus becker

### claus becker (view profile)

in lines 113 and 137 replace "naivebayes.fit" by "fitcnb". Also, change line 48 to "RandStream.setGlobalStream(s)". Then it seems to work

Nagaraj Selvaraj

### Nagaraj Selvaraj (view profile)

where to get the whitewine.xlsx

Walcir Cardoso Jr

AMALINA NAZERY

### AMALINA NAZERY (view profile)

Sorry i want to ask how to fix this error that i get when run this coding tq.
The class RandStream has no Constant property or Static method named 'setDefaultStream'.

Sanjeev Kumar

thanks sir

MUNSIF

### MUNSIF (view profile)

Excellent demo. Thanks Sir.

Andrei Makarskiy

### Andrei Makarskiy (view profile)

I keep getting en error in 2015 version:

Undefined function or variable 'legacy'.

Error in WhiteWine (line 48)
legacy RandStream.setDefaultStream(s);

xu song

css

css

Swati

execellent sir

SUMANTH

Sandy

Mr Smart

Gaspar

### Gaspar (view profile)

Excellent presentation and demo on using datasets to do classification.

Ali Ali

### Ali Ali (view profile)

Thanks a lot. Fanstastic demo and code.