Info

This question is closed. Reopen it to edit or answer.

How to stop matlab to go to VB code then back to matlab?

2 views (last 30 days)
JT
JT on 23 Jan 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
I have a VB code in which I call matlab, in the matlab I have a peace code. A nested for loop to be exact. what I want to do is at the end of the first iteration of each loop I want matlab to go back to VB to save the file, rename the file then continue in matlab with the next iteration. this process is to continue until all iterations are completed. Here is more or less what my code will look like in general terms
for i = begini:stepi:endi
{code performing calculation then go to the next loop at the first iteration}
for j = beginj=stepj:endj
{code performing calculation unitil endj is reached}
end
end
I just want matlab to go to VB as if I was creating a matrix (i,j) and saving the file at every point.
Any ideas? thanks

Answers (0)

Community Treasure Hunt

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

Start Hunting!