script file in script file with matlab 2018
Mostrar comentarios más antiguos
Hello
I have 2 script files in the same sub folder.
test.m
function test2
a = 1
b = 2
call_addi
end
function res = addi(x,y)
res = x + y
end
and
call_addi.m
somme = addi(a,b)
If I run 'test' under matlab 2016 everything goes fine. But the same under matlab 2018 gives the following error:
Undefined function or variable 'addi'.
Error in call_addi (line 1) somme = addi(a,b)
Error in test (line 5) call_addi
What shall I do to run these kinds of script under matlab 2018
Respuesta aceptada
Más respuestas (1)
Frederic Coste
el 22 de Ag. de 2018
0 votos
Categorías
Más información sobre Just for fun en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!