Info
This question is closed. Reopen it to edit or answer.
how can i create a circle with a radius leading to a point p with a tangent on the point p?
1 view (last 30 days)
Show older comments
I need a script to create a circle from a fixed point defined ๐ฅ = ๐ cos ๐ + ๐ฅ0 ๐ฆ = ๐ sin ๐ + ๐ฆ0 with a radius plotted between (๐ฅ0, ๐ฆ0 ) and (๐ฅ๐, ๐ฆ๐ ) and a tangent line (๐ฅ๐ก , ๐ฆ๐ก) are defined as follows: When ๐ฆ๐ โ ๐ฆ0 ๐ฅ๐ โ 2 โค ๐ฅ๐ก โค ๐ฅ๐ + 2 ๐ฆ๐ก = ๐๐ก (๐ฅ๐ก โ ๐ฅ๐ ) + ๐ฆ๐, When ๐ฆ๐ = ๐ฆ0 ๐ฅ๐ก = ๐ฅ๐ ๐ฆ๐ โ 5 โค ๐ฆ๐ก โค ๐ฆ๐ + 5.
The MATLAB script must include the following: โข User input for o The radius of the circle o The coordinates of the centre of the circle o The coordinates of the point ๐ โข All calculations, including the calculation for the gradient of the tangent โข The commands to: o Create a single figure containing all three lines/curves o Create a legend on the figure o Label the figure axes o Choose appropriate limits for the axes to ensure the circle does not touch the axes at any point o Set the aspect ratio of the figure to be 1:1 (use the MATLAB help to find the correct command to do this) โข Comments describing the code
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!