This one comes handy when you have repetitive work to copy the files to some directory.
I had to conduct different tests with different parameters and hence wanted an automated way to clean up the files after each test. I wanted to have them organized in folder as per attribution.
This is quite stunning to realize that Matlab has unix features such as ls and pwd
while not cp or mv for copying the files. I started by assuming that cp or mv should work. It does not!
After I copy the files, I can:
I was wondering how to get n number of sample outputs constrained by the situations given.
AB > C^2
accept C
else reject C
however, I need n non zero final samples.
This takes x until y(j)>50. After the condition is met it simply passes out.
Better explained by:
continue keeps on taking values does not break the chain.
while break breaks it and comes out of the loop
Contrasted over the
lastly;
clear
clc
y = 1:100;
count = 0
for j = 1:length(y)
disp('go')
if y(j)<20||y(j)>50, break, end
count = count+1
x(j)=y(j)
pause
end
this does not even work while continue will keep looking for the situation.
Break just breaks while continue keep working escaping to the next one and checking!