# How can i create a function that returns the x and y coordinate of a circle with given center, radius an interval from 0 to 2*pi?

12 views (last 30 days)
Özgür Saglam on 3 May 2020
Commented: Rik on 6 May 2020
How can i create a function that returns the x and y coordinate of a circle with given center, radius an interval from 0 to 2*pi?
Rik on 3 May 2020
Look at how you are generating the t vector. That would be a way to make your circle look a lot more like a circle.

Maadhav Akula on 6 May 2020
Hi,
According to your comments I think you just want a particular point (x,y co-ordinates) on a circle. For that you should also pass the angle value too. You got the function almost right, I have modified it a little:
end
where t can lie between the interval [0,2*pi] in radians.
Hope this helps!
##### 2 CommentsShowHide 1 older comment
Rik on 6 May 2020
Personally I think it is more likely that OP was calling the function with a single output and should increase the number of angles.
It looks like homework to me, and I don't see how it makes sense to ask for a part of the arc in a homework question.

### Categories

Find more on Logical 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!