How to plot a gaussmf in simulink?

1 次查看(过去 30 天)
Shubham Kumar
Shubham Kumar 2018-3-16
回答: Sam Chak 2025-4-12
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?

回答(1 个)

Sam Chak
Sam Chak 2025-4-12
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')

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic in Simulink 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by