Quantcast
Channel: MATLAB Central Newsreader - tag:"fuzzy logic"
Viewing all articles
Browse latest Browse all 18

Fuzzy logic AND operator as a graph

$
0
0
I am trying to create a 3d graph that contains two arrays X and Y, and for the third axis, a function that compares each number combination in X and Y and takes the minimum number of the two vectors X and Y.

This is what I have tried so far:

x = [0:0.1:1]
y = x
y = fliplr(y)

When I open the plot tools and try to add the third axis as an expression min(x,y) I am getting an error stating that the z axis must be a matrix.

I'm not 100% sure if flipping the Y vector the opposite of X will give me the results I want to see as I need pretty much every possibility that the numbers in between 0 and 1 that will be placed into the function min(x,y), for example:

x(0.8)
y(0.3)

or

x(0.1)
y(0.9)

It is to display what the AND operator has been replaced by in fuzzy logic, which is the minimum of X and Y.

Viewing all articles
Browse latest Browse all 18

Trending Articles