フィルターのクリア

How to plot 2d filled contour

2 ビュー (過去 30 日間)
Aiden James
Aiden James 2021 年 5 月 28 日
コメント済み: Aiden James 2021 年 5 月 29 日
I have function y= (0.32/(0.32+0.38*x))^2
k=m*(dy/dx)
It means 'k' depends on 'm' and 'x'
x= 0:1 ( 0 to1)
m=0:1 ( 0 to1)
I want see variation of k with 'm' and 'x' using 2d contour in range of (0 ,1)
How to do it?

採用された回答

KSSV
KSSV 2021 年 5 月 28 日
x = linspace(0,1) ;
m = linspace(0,1) ;
[X,M] = meshgrid(x,m) ;
Y = (0.32./(0.32+0.38*X)).^2 ;
dX = gradient(X) ;
dY = gradient(Y) ;
K = M.*(dY./dX) ;
contourf(X,M,K)
  1 件のコメント
Aiden James
Aiden James 2021 年 5 月 29 日
Thank you sir

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by