Graph f(x,y) function

7 ビュー (過去 30 日間)
Andre Mattos Schumaker
Andre Mattos Schumaker 2017 年 4 月 29 日
コメント済み: Star Strider 2017 年 4 月 29 日
Hello! I have to graph a problem in Nebulous Logic with Matlab. I am rusty on my commands (never used Matlab before, so i'm not sure which one command to use. I am trying to make a function f(x,y)=-(x-10)^2-(y-10)^2. I need consideer a interval of [-10,10] and construct five fuzzy sets (C1,C2,C3,C4,C5) for eachone. Can somebody give-me a help ? i'm dying trying here T-T I need to use the fuzzy logic toolbox to solve this problem

採用された回答

Star Strider
Star Strider 2017 年 4 月 29 日
I have no idea what a ‘cloud set’ is, although creating the function (here as an anonymous funciton) is straightforward:
f = @(x,y) -(x-10).^2 -(y-10).^2;
[X,Y] = meshgrid(-10:10);
figure(1)
meshc(X, Y, f(X,Y))
grid on
See the documentation on Function Basics (link) for the details on creating and using functions.
I added the plot for fun, and to demonstrate how to call the function.
  2 件のコメント
Andre Mattos Schumaker
Andre Mattos Schumaker 2017 年 4 月 29 日
Hello! Thanks for help. The "cloud set" is fuzzy set, sorry for bad translation
Star Strider
Star Strider 2017 年 4 月 29 日
My pleasure!
Translation is not the problem. I suspected it is a ‘fuzzy set’ or something probabalistic, not that I am able to help with it just now.
MATLAB has a Fuzzy Logic Toolbox that I have but have not explored recently. Its functions could help you, and they should be compatible with other MATLAB code (such as your function).

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFuzzy Logic in Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by