Plotting circles horizontally through entire range of x values on a constant y value

3 views (last 30 days)
Lorenne on 2 May 2018
Commented: Star Strider on 3 May 2018
How do i plot circles for the entire range of the x values for a constant y value instead of a horizontal line through the range of x values?

Accepted Answer

Star Strider
Star Strider on 2 May 2018
I am not certain what you want.
Try this:
x = rand(10,1);
y = ones(size(x))*0.5;
plot(x, y, 'o')

Sign in to comment.

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!