MATLAB: Separate Points for Plotting

Click For Summary
SUMMARY

The discussion centers on plotting 1000 data points in MATLAB, categorized into two classes based on their position relative to a decision boundary. Users seek guidance on visually distinguishing these classes by using different colors for class 1 and class 0 data points. The solution involves utilizing MATLAB's plotting functions to achieve this differentiation effectively.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of data visualization techniques
  • Knowledge of basic plotting functions in MATLAB
  • Concept of decision boundaries in data classification
NEXT STEPS
  • Explore MATLAB's 'scatter' function for plotting categorized data points
  • Learn about customizing plot colors and markers in MATLAB
  • Investigate how to implement decision boundaries in MATLAB plots
  • Research data classification techniques relevant to MATLAB
USEFUL FOR

This discussion is beneficial for data scientists, MATLAB users, and anyone involved in data visualization and classification tasks.

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
strokebow said:
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!

Please don't cross-post to multiple subforums. I've already replied in your other thread:
https://www.physicsforums.com/showthread.php?t=310468
 

Similar threads

Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K