function doesn't take variables/number from main function

problem:
??? Error using ==> lt
Not enough input arguments.
Error in ==> solverNRlinear at 12
if norm_funkcije(lt(tol))
Error in ==> glavnapokusaj at 79
[Sol]=solverNRlinear(initSol, epsp_novo1(i-1), epsp_novo2(i-1), epsp_novo12(i-1), alpha(i-1), epstotal1(i), epstotal2(i), epstotal12(i), K, lam, mi, sigmay);
In main function I set the values for epsp_novo1,... but in function solverNRlinear equations doesn't take numbers from main function instead of that leaves sym.

 Respuesta aceptada

Stephen23
Stephen23 el 16 de Abr. de 2018
Editada: Stephen23 el 16 de Abr. de 2018

The error message states

??? Error using ==> lt

and it even shows how you try to call the function lt like this: lt(tol)

The function lt requires two input arguments. You provide it with one.

1 comentario

Thank you for your response, now I get this error:
??? Error using ==> sym.sym>notimplemented at 2621 Function 'lt' is not implemented for MuPAD symbolic objects.
Error in ==> sym.sym>sym.lt at 812 notimplemented('lt');
Error in ==> solverNRlinear at 12 if lt(norm_funkcije,tol)
Error in ==> glavnapokusaj at 79 [Sol]=solverNRlinear(initSol, epsp_novo1(i-1), epsp_novo2(i-1), epsp_novo12(i-1), alpha(i-1), epstotal1(i), epstotal2(i), epstotal12(i), K, lam, mi, sigmay);

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 16 de Abr. de 2018

Comentada:

el 16 de Abr. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by