Why am I not able to use 'findobj' with 'regexp' when working with DOM objects?
2 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2018 年 5 月 23 日
回答済み: MathWorks Support Team
2018 年 6 月 4 日
I have generated a DOM document object in MATLAB which has several children. I want to search for child DOM objects by using 'findobj' and passing the DOM objects's 'Tag' value as an input to the '-regexp' parameter.
But using it always returns an empty array.
採用された回答
MathWorks Support Team
2018 年 6 月 4 日
The DOM API does not support 'findobj' with 'regexp' searches or instance hierarchy searches.
An enhancement request for this has been forwarded to our development team so that they can consider adding this feature to a future release of MATLAB.
As a workaround, you can create a MATLAB program to perform these searches using the DOM object's 'Children' property to recursively descend a hierarchy of DOM objects, and the MATLAB 'regexp' function to match the DOM object's property values.
More information about the 'regexp' function can be found in the MATLAB Documentation link below:
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Templates についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!