how to use children function?

I was reading the depth first search code on matlabtools. But when I tried their code, for
ns = children(adj_mat, u); where adj_mat is an adjacency matrix
matlab gave error message: Undefined function 'children' for input arguments of type 'double'.
Anybody knows what is going on?
Thanks.

2 件のコメント

Image Analyst
Image Analyst 2013 年 8 月 18 日
How could I? I don't know what matlabtools is. Do you have a URL? At this point all I can say is that you do not have any function or variable called children - same as what the error says.
Wayne
Wayne 2013 年 8 月 18 日
this is the URL:
I typed help children in my matlab,the function children does show up.

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

 採用された回答

the cyclist
the cyclist 2013 年 8 月 18 日

0 投票

Are you talking about this: https://code.google.com/p/matlabtools/ ?
As it says, that code was included in PMTK: https://code.google.com/p/pmtk3/.
And even that code looks like it might not really be supported anymore.

3 件のコメント

Wayne
Wayne 2013 年 8 月 18 日
Thanks. I think you are right. But when I typed help children in my matlab (without installing PMTK),the documentation for children does show up.
the cyclist
the cyclist 2013 年 8 月 18 日
What do you get from
>> which children
?
children is also a function in the Statistics Toolbox, and it expects a tree as an input.
Wayne
Wayne 2013 年 8 月 18 日
I see, thanks!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by