# Write MATLAB code to perform the following computations:

4 views (last 30 days)

Show older comments

Consider a set U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} as the universe of discourse for the two fuzzy sets A˜ and B˜ with the below membership functions. µ˜(A) (x) = x 2 − x 4x 2 µ˜(B) (x) = 4x 2 − 3x 6x 2 Write MATLAB code to perform the following computations:

1. Determine whether A˜ is contained within B˜.

2. A˜ ∪ B˜

3. A˜ ∩ B˜

4. Complement of B˜

5. A˜ * B˜

6. A˜ + B˜

7. A˜ - B˜

8. A˜ L B˜

9. A˜ J B˜

10. Bounded difference of B˜ and A˜

11. Height, Cardinality, Support, and Core of A˜ and B˜

12. Cartesian Product of A˜ and B

##### 2 Comments

Steven Lord
on 15 May 2024

This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.

If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.

If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.

### Accepted Answer

Mann Baidi
on 15 May 2024

Hi.

For applying set computations in MATLAB, you can refer to the following link:

##### 2 Comments

Image Analyst
on 15 May 2024

### More Answers (0)

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!