Borrar filtros
Borrar filtros

how can i call and plot function of two variables ?

1 visualización (últimos 30 días)
saja mk
saja mk el 16 de Sept. de 2020
Respondida: KSSV el 16 de Sept. de 2020
For this equation:
i want to write it as a function
and then call and plot it in another file

Respuesta aceptada

KSSV
KSSV el 16 de Sept. de 2020
  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.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by