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.

 Akzeptierte Antwort

Stephen23
Stephen23 am 16 Apr. 2018
Bearbeitet: Stephen23 am 16 Apr. 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 Kommentar

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);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by