How to plot a gaussmf in simulink?

1 Ansicht (letzte 30 Tage)
Shubham Kumar
Shubham Kumar am 16 Mär. 2018
Beantwortet: Sam Chak am 12 Apr. 2025
I am trying to use an mf block in simulink as an input for my fis toolbox but the mf block isnt providing the derired output. what should i do?

Antworten (1)

Sam Chak
Sam Chak am 12 Apr. 2025
The Gaussian MF block behaves as expected mathematically. If the output signal deviates from your expectations, it may be due to incorrect parameters of the Gaussian MF or an issue with the input signal.
%% Plot in MATLAB
t = 0:0.01:10;
sigma = 1; % standard deviation
mean = 5; % peak point at which f(t) = 1
f = exp(-1/2*((t - mean)/sigma).^2);
plot(t, f, 'linewidth', 2), grid on,
ylim([-0.2, 1.2]), xlabel('t'), title('Gaussian membership function')

Kategorien

Mehr zu Fuzzy Logic in Simulink finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by