How do I do this?

2 ビュー (過去 30 日間)
JIANGWEN DONG
JIANGWEN DONG 2021 年 2 月 9 日
コメント済み: the cyclist 2021 年 2 月 9 日
Integrate function 𝑓(𝑢, 𝑣) = 𝑣 − √𝑢 over the triangular region cut from the first quadrant of the uv-plane by the line u + v = 1. Plot the region of interest.
  1 件のコメント
jessupj
jessupj 2021 年 2 月 9 日
you need to first identify whether you want to solve this numerically or symbolicallly

サインインしてコメントする。

採用された回答

the cyclist
the cyclist 2021 年 2 月 9 日
This seems like a homework problem, so here is a hint instead of an answer: Your problem is extremely close to the first example in the documentation for the integral2 function.
(Assuming, as @jessupj asks, that you are OK with a numerical solution.)
  2 件のコメント
JIANGWEN DONG
JIANGWEN DONG 2021 年 2 月 9 日
hi, I have already done the code, but how do I plot it out in the first quadrant?
figure(2);
f = @(u,v) v-sqrt(u);
vmax = @(u) 1-u;
q = integral2(f,0,1,0,vmax);
the cyclist
the cyclist 2021 年 2 月 9 日
You could use the mesh or surf functions to plot the 3-d surface.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by