- Read about linspace. With this create x, y values i.e.
.
- Make x, y matrices by using meshgrid.
- Substiture these values in the given formula. You have to use element by element operations. Read about them.
- USe contour to plot.
How to plot isoline described by an equation
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Christian Scalia
am 29 Jan. 2021
Beantwortet: KSSV
am 29 Jan. 2021
Hi all. I have the following equation describing the isoline in the graph I will attach below.
P=((1025*9.81^2)/(64*pi))*(Hs^2*Te*tanh(k*d))*(1+(2*k*d)/(sinh(2*k*d)))
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/503613/image.png)
I only need to plot those isolines, described by the equation above. (ignore the boxes inside the graph, I am only interested in those isolines)
Maybe the starting point is to compute all the Te (x values) and Hs (y values) whose combination will always give me a fixed result i.e 2,5,10,20,50?
Thanks
0 Kommentare
Akzeptierte Antwort
KSSV
am 29 Jan. 2021
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!