built in function fuzairth question
조회 수: 1 (최근 30일)
이전 댓글 표시
x = -10:0.1:10;
f1 = trapmf(x,[-2 0 0 2]);
f2 = trapmf(x,[-1 2 2 5]);
plot(x,fuzarith(x,f1,f2,'prod'));
title('A * B');
I'm trying to plot this graph without using the built-in function, here's my thought process:
first off, fuzzy multiply works by taking the lower and upper x-bounds of f1, lets say [a b] and of f2, [d e] of the same iteration as my set x-iteration (201 in my case) and then finds
min([a*d, a*e, b*d, b*e]) = lower;
max([a*d, a*e, b*d, b*e]) = upper;
then plot that for the 201 y-values from 0 to 1 in same increments.
I have no idea how to do this I've tried so many different ways but I keep running into either dimension errors or just straight up wrong answers!!
please help!! ANY help will be appreciated greatly.. thank you
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!