How to edit matlab toolbox globaloptim
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
kukuh widarsono
el 25 de En. de 2022
Comentada: kukuh widarsono
el 27 de En. de 2022
good day everyone
I use the matlab toolbox script (ga toolbox). And I want to see the process and result step by step. to see this process or result, I must editing the program of ga.
but, when I already edit and continue to save this program, appear report like that " error writing ga.m...C:\program files\MATLAB\....bla bla bla...acces denied".
how to solved this problem.
thanks
0 comentarios
Respuesta aceptada
Steven Lord
el 25 de En. de 2022
3 comentarios
Steven Lord
el 26 de En. de 2022
I strongly recommend against modifying functions written by MathWorks. A change you think should be harmless (or that you make accidentally) could make the function stop working or make it return incorrect results.
If you need to see the process that the function follows you could set a breakpoint in the function and use the debugging capabilities to trace the execution. That would let you look at variables without making permanent changes to the file. This won't work for built-in functions for which we don't distribute the source code, but if I recall correctly ga is implemented as a regular MATLAB function file.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!