Borrar filtros
Borrar filtros

Error using gbellmf with Matlab

17 visualizaciones (últimos 30 días)
faycel jamaaoui
faycel jamaaoui el 1 de Jul. de 2024 a las 11:17
Comentada: Sam Chak el 2 de Jul. de 2024 a las 5:18

Respuestas (2)

Umar
Umar el 2 de Jul. de 2024 a las 3:05
Hi Faycel,
My suggestions would be to ensure that the parameters passed to gbellmf are appropriate for the Gaussian bell-shaped membership function. Verify that the input values are within the expected range and data type. Additionally, confirm that the function is called correctly with the right syntax and that all required arguments are provided.

Walter Roberson
Walter Roberson el 2 de Jul. de 2024 a las 4:11
When you invoked AB_computation_5SV_PVT you did not pass in at least 5 parameters.
Typically this error is caused by attempting to invoke the code by pressing the green Run button. When you press the green Run button, the code is invoked with no parameters at all. MATLAB never goes searching in the environment looking for parameters with the same name as named parameters to a function: any parameter that is not passed positionally in the call is marked as missing.
  1 comentario
Sam Chak
Sam Chak el 2 de Jul. de 2024 a las 5:18
When the green "Run" button is clicked, it is similar to executing the code below. You may then wonder, "What should I do next? I have the code, but it does not run as I expected."
%% --- Command Window: >> AB_computation_5SV_PVT ---
AB_computation_5SV_PVT() % no inputs inside the parentheses ()
Not enough input arguments.

Error in solution>AB_computation_5SV_PVT (line 9)
out = gbellmf(in5, in1);
%% --- Editor: function starts here ---
function out = AB_computation_5SV_PVT(in1, in2, in3, in4, in5)
a = 1;
b = 2;
out = gbellmf(in5, in1);
end
%% --- Editor: function ends here ---

Iniciar sesión para comentar.

Categorías

Más información sobre Network Connection and Exploration en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by