MATLAB MATLAB Separate Points for Plotting

AI Thread Summary
To visualize the generated 1000 data points classified as 1 or 0 based on a decision boundary, the recommended approach is to split the data into two separate sets: one for class 0 and another for class 1. Each set should consist of their respective x and y coordinates. Once the data is organized, use a plotting function to display the points, assigning different colors to each class for clear differentiation. For implementation, resources such as MATLAB's plotting documentation can provide guidance on the specific functions needed for effective visualization.
strokebow
Messages
122
Reaction score
0
Hi,

I have generated 1000 data points.
I have assigned them a class (1 or 0) depending if they are above or below a decision boundary.

I want to plot the data on a graph with the class 1 data points in one colour and the class 0 data points in another.

any ideasa how I can do this please.

Thanks!
 
Physics news on Phys.org

Similar threads

Replies
8
Views
2K
Replies
4
Views
4K
Replies
1
Views
3K
Replies
5
Views
3K
Replies
1
Views
2K
Replies
4
Views
3K
Replies
7
Views
1K
Back
Top