What if a simple dot on a graph could reveal secrets hidden in your data?
Why Scatter plots in MATLAB? - Purpose & Use Cases
Imagine you have a list of students' heights and weights, and you want to see if taller students tend to weigh more. Without a scatter plot, you'd have to look at two long lists of numbers side by side and try to guess the relationship.
Trying to understand relationships by scanning raw numbers is slow and confusing. It's easy to miss patterns or make wrong guesses because numbers alone don't show how points relate visually.
Scatter plots let you quickly see how two sets of data relate by plotting each pair as a dot on a graph. This visual approach makes spotting trends, clusters, or outliers simple and clear.
heights = [160, 170, 180]; weights = [55, 65, 75]; disp([heights; weights])
scatter(heights, weights); title('Height vs Weight'); xlabel('Height (cm)'); ylabel('Weight (kg)');
Scatter plots make it easy to discover and understand relationships between two variables at a glance.
A doctor uses a scatter plot to see if patients' blood pressure relates to their age, helping to spot health trends quickly.
Looking at raw numbers is hard to interpret.
Scatter plots show data pairs as dots for easy pattern spotting.
This helps find trends and make better decisions faster.