Filter table by lenght of elements in one column.

1 回表示 (過去 30 日間)
Ajpaezm
Ajpaezm 2019 年 5 月 3 日
Hi, I'd like to filter, without using loops, a table by the lenght of an element in a given column. The lenght for my scenario must match 12 in this case.
I tried this, and it was effective, but not sure if it was the most effective one:
filtered_table = myTable(cellfun('length',myTable.thatColumn)==12, :);
I'd like to know if more efficient variations are possible, this is the only one I know unfortunately.
Thanks in advance.

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by