How can I select every variable in my workspace?

I am sifting through a data set that is so big it keeps crashing my computer. I imported the data which took several hours so it entered my workspace as 900+ variables. I have since cleared nearly 800 variables and hope that the 130ish (single column) variables will not crash my system. Is there a way to select every individual variable at once? I would like to concatenate them into a matrix and export it. I don't want to type them individually because I may change which variables I clear. Any advice?

3 Comments

The question is how did you end up with 900 variables? maybe you need to revise your code
I agree with Azzi. If you have 900 variables and wanted matrices to begin with, then just reprogram to use matrices. That's about all we can say without seeing your code.
@Matt: how did you get 900+ variables into your workspace?
  • Slow and buggy: import lots of variables, try to merge them together.
  • Fast and reliable: import into a few variables.
If you show us what you are doing then we can help you to improve it.

Sign in to comment.

Answers (0)

Asked:

on 20 May 2016

Commented:

on 21 May 2016

Community Treasure Hunt

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

Start Hunting!