Run the second programme in the current execution
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I have a code (.m) file stored on my PC. Now I want to run this file in between the execution of my current programme, like:
for i=1:3
for j=1:2
%run the particular (.m) file saved on PC
end
end
Please help.
Thanks!
댓글 수: 0
채택된 답변
per isakson
2012년 7월 1일
편집: per isakson
2012년 7월 1일
Assume the name of your m-file is my_code.m. Try
for i=1:3
for j=1:2
% run the particular (.m) file saved on PC
my_code
end
end
Your code is that a script or a function? Do you need to pass data to my_code?
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!