save the results of who function

6 ビュー (過去 30 日間)
joseph Frank
joseph Frank 2013 年 8 月 26 日
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.

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by