MATLAB Answers

save the results of who function

3 views (last 30 days)
Hi,
I want to store the results of variables that start with B in a cell array where each row display the name of one variable. I tried who B* and I saw the results displayed. I tried List=who(B*); but I am receiving an error and I couldn't figure out after reading the documenttion how to store them.Any help is appreciated.

  0 Comments

Sign in to comment.

Accepted Answer

Grzegorz Knor
Grzegorz Knor on 26 Aug 2013
You have to use quotation marks, because an argument of who should be string:
List = who('B*')

  0 Comments

Sign in to comment.

More Answers (0)

Tags