how can i call and plot function of two variables ?

1 回表示 (過去 30 日間)
saja mk
saja mk 2020 年 9 月 16 日
回答済み: KSSV 2020 年 9 月 16 日
For this equation:
i want to write it as a function
and then call and plot it in another file

採用された回答

KSSV
KSSV 2020 年 9 月 16 日
  1. Define x1 and x2 using linspace.
  2. Make x1, x2 matrices, using meshgrid.
  3. Make your caclulation. You need to use element by element operations. So you have to use .^ to get power.
  4. USe surf, pcolor to plot.
This is your HomeWork. You have to do it yourself.

その他の回答 (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