Write a MatLab script to plot two ellipses using the plot function
Ältere Kommentare anzeigen
There was a similar question to this but I need to use the plot function for my task.
Task 1. I have been given 2 equations and I need to plot them in one figure using the plot function, I was wondering if anybody could help
– plot the two ellipses in one figure using MATLAB function plot only
– The plot should be clear and contains correct labelling
(x − 2)^2 + (y − 3 + 2x)^2 = 5
2 (x − 3)^2 + (y/3)^2 = 4
Task 2. I also need to find the coordinates of any intersections (there should be four) between the 2 ellipses
– Convert the intersection-finding problems into root-finding problems in the form of f (x) = 0
where all four f (x) need to be explicitly defined in the MATLAB code
– Implement Newton’s method and use it to find and print the coordinates (x, y) of all the inter-sections of the two ellipses. Note: you can use any online derivative finder to find f ′(x)
– The Newton’s method implemented should stop based on a given error margin
your MATLAB script shouldn’t use any symbolic functions such as sym, syms.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
