How to design the membership function in matlab?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
i did the rule 1 and 2 in matlab with trimf function as you can see (see the attached image) ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649890/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649890/image.png)
but for the rule 3 and 4 i don't get any idea how to design them
hope someon can help me with that thanks
댓글 수: 0
채택된 답변
Alan Stevens
2021년 6월 11일
편집: Alan Stevens
2021년 6월 11일
How about the following for rule 3 (I'll leave you to invert for rule 4).
x = [-180 -90 -89.001 89.001 90 180];
y = (x+180)/90.*(x<=-90)+(180-x)/90.*(x>=90);
plot(x,y)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!