How to overlay a plot onto a scatter plot?
Show older comments
clc; clear all;
load('../data/points2D_Set1'); % gives variables x and
% y and x range is [0,1] and it's loading correctly
xtrue=[0:1e-4:1];
ytrue=1.5*x+2.5;
plot(xtrue,ytrue);
hold on;
scatter(x,y);
my aim is to overlay the plot on the scatter plot but when I run this I'm getting an empty plot
Accepted Answer
More Answers (0)
Categories
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!