- #1
Heidis
- 2
- 0
Hey everybody
I have very recently learned the function 'varname_' for storing data with different names in a loop. My problem is that the result is written in the command window even though I have written ;.
My command looks like this
for run=237:273
[F,dt] = Dataimport(n,run);
eval(['F_' num2str((run-237)*10) '=F']);
clc
end
Since every F comming out of the function Dataimport is a 10x33,877 matrix I would very much like to stop Matlab from writing it 37 times (length of loop).
I have tried putting two ;; but that gave an error. Right now I'm just deleting the result for each loop but it still takes a lot of unnecessary power.
Can anyone help me and correct my mistake?
Regards Heidi
I have very recently learned the function 'varname_' for storing data with different names in a loop. My problem is that the result is written in the command window even though I have written ;.
My command looks like this
for run=237:273
[F,dt] = Dataimport(n,run);
eval(['F_' num2str((run-237)*10) '=F']);
clc
end
Since every F comming out of the function Dataimport is a 10x33,877 matrix I would very much like to stop Matlab from writing it 37 times (length of loop).
I have tried putting two ;; but that gave an error. Right now I'm just deleting the result for each loop but it still takes a lot of unnecessary power.
Can anyone help me and correct my mistake?
Regards Heidi