Hey everybody(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Suppressing result using 'varname_' in Matlab

Loading...

Similar Threads for Suppressing result using |
---|

Mathematica Unexpected Result |

Using Maxima to plot error in Fourier series |

MATLAB Solving equation with integration using MATLAB |

**Physics Forums | Science Articles, Homework Help, Discussion**