how can i call and plot function of two variables ?

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by