run a script inside another script
이전 댓글 표시
Hello,
I have made a script called "EPSO" that do a lot of calculations and in the end it gives the global_best_solution. I want to test the strength because if i run 100 times the global_best_solution should be always the same. So i've made a script that run this script and should keep the global_best_solution in each iteration.
for i=1: 3
EPSO;
solutions(1,i)=global_best_solution;
end
The problem is that this doesn't keep the result each time i run it. Thanks in advance
댓글 수: 1
per isakson
2013년 1월 7일
Could it be that the variable, i, occurs in ESPO?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!