How can I select every variable in my workspace?

5 views (last 30 days)
Matt
Matt on 20 May 2016
Commented: Stephen23 on 21 May 2016
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
Image Analyst
Image Analyst on 21 May 2016
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.
Stephen23
Stephen23 on 21 May 2016
@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)

Community Treasure Hunt

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

Start Hunting!