scatter plot for fisher iris

I want to create a visualization with scatterplots of each pair of features in the Iris dataset - sepal width,sepal length,petal width, petal length. Also I need to define a class label to show which type of iris each one is (Setosa, Versicolor and Virginica).

I am new to Matlab, and do not know how to make such scatterplots. Could you please help me?

Thnks in advance


Presuming you have the Statistics Toolbox, you should use gscatter for grouped data.

For each pair of data you will need to callgscatter(x,y,group) - you can use additional inputs to control exactly how the data is plotted (colors, legend, etc.) - see the help file.

For the fisheriris data set, your x and y are the two measurements you're comparing (from meas), and the group labels are in species.

Need Your Help

Magento observer - Which event to use when a coupon code is canceled

magento magento-1.9

I am building a module that adds a free product to the cart when a specific coupon code is entered.

Have C++11 some portable and effective way to access enclosing class from nested class?

c++ c++11 nested-class offsetof outer-classes

What I am needing can be done by storing this pointer of enclosing class into nested class for example this way: