How to use Ctrl+F functionality in the Workspace editor?

I have a large structure which I am viewing in the workspace with hundreds of fields. I need to search for a specific token "runner" in the fields, but obviously I can't read through it manually. Why can't I ctrl+F in the workspace? "whos" won't work because it only looks at the variable names. I need to parse the contents of the fields too. What should I do?

3 件のコメント

Rik
Rik 2018 年 9 月 7 日
If you need to search through the field names, then the fieldnames function should help.
Adam
Adam 2018 年 9 月 7 日
Can you not do it in code instead, using strcmp on whichever field you expect "runner" to appear in?
Even if Ctrl+F did work in the Workspace editor you could only really expect it to find a variable named "runner", not search inside objects, structs and whatever else is in the workspace, to any depth, and find results.
Matthew
Matthew 2018 年 9 月 7 日
編集済み: Matthew 2018 年 9 月 7 日
OK I just used "contains" and logical indexing in the code itself and that was pretty easy. Not as easy as ctrl+F obviously, but got the job done.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

質問済み:

2018 年 9 月 7 日

編集済み:

2018 年 9 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by