built in function fuzairth question

조회 수: 1 (최근 30일)
soloby
soloby 2015년 6월 16일
편집: Walter Roberson 2015년 6월 16일
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개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by