Borrar filtros
Borrar filtros

What are possible issues if MATLAB doesn't recognise a variable?

1 visualización (últimos 30 días)
beginner94
beginner94 el 29 de En. de 2019
Comentada: beginner94 el 29 de En. de 2019
if strcmp(str(1:3), 'Min') == 1
VZ = 1;
end
if strcmp(str(1:3), 'Max') == 1
VZ = -1;
end
VZ
[k l s] = evIII_weibull('param', mevI, sevI, x0, VZ);
VZ
Good afternoon,
the first time I call "VZ" MATLAB gives me the correct value, but after giving it as input for another function MATLAB doens't know the value anymore. Does anyone know how this is possible? Furthermore the function "evIII_weibull" doesn't accept VZ as input (eventhough I have declared it as input in evIII_weibull.m
This is the error message I get:
??? Input argument "VZ" is undefined.
Please help
  8 comentarios
beginner94
beginner94 el 29 de En. de 2019
@madhan ravi
Before VZ was missing an input (required, the function is not varargin)
@Stephen Cobeldick
The if condition is working fine, thank you nevertheless!
beginner94
beginner94 el 29 de En. de 2019
@Stephen Cobeldick
If I had been aware that the problem was in evIII_weibull I would of course have provided it. Mercy on beginners :)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Productos


Versión

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by