Run the second programme in the current execution

2 ビュー (過去 30 日間)
manish sharma
manish sharma 2012 年 7 月 1 日
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!

採用された回答

per isakson
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?
  1 件のコメント
manish sharma
manish sharma 2012 年 7 月 1 日
That was simpler than I expected :)
Thanks a lot Isakson!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by