필터 지우기
필터 지우기

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 CenterFile Exchange에서 2-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