フィルターのクリア

How to plot inequality?

8 ビュー (過去 30 日間)
Ondrej Panek
Ondrej Panek 2017 年 2 月 4 日
回答済み: Karan Gill 2017 年 2 月 13 日
Hello, can someone please show me, how to plot this inequality?
metr(x, point) < radius;
where 'x' is general point in 2D xor 3D, 'point' is concrete point in 2D xor 3D, expression 'metr(x, point) < radius' represents a neighbourhood of the 'point' with radius 'radius'. I would like to plot this neighbourhood to the graph - both in 2D and 3D. Thanks for your help!

回答 (1 件)

Karan Gill
Karan Gill 2017 年 2 月 13 日
Here's an example of plotting an inequality. You'll need to adapt it.
>> v = -5:0.1:5;
[x,y] = meshgrid(v); % create a grid
ineq = x + y >= 1; % some inequality
f = double(ineq);
surf(x,y,f);
view(0,90) % rotate surface plot to top view

カテゴリ

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