How to plot isoline described by an equation

8 ビュー (過去 30 日間)
Christian Scalia
Christian Scalia 2021 年 1 月 29 日
回答済み: KSSV 2021 年 1 月 29 日
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)))
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

採用された回答

KSSV
KSSV 2021 年 1 月 29 日
  1. Read about linspace. With this create x, y values i.e. .
  2. Make x, y matrices by using meshgrid.
  3. Substiture these values in the given formula. You have to use element by element operations. Read about them.
  4. USe contour to plot.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by