How do I know if it's an object or a function?
古いコメントを表示
Hello, my friends
Simple question, no?
In previous questions I though box was an object but it seems to be a function. How can I get this info without asking questions in forums?
Thanks
回答 (2 件)
Star Strider
2015 年 11 月 22 日
0 投票
One option would be to use the class function. There may be others, such as those linked to at the end of that documentation.
4 件のコメント
rbarata
2015 年 11 月 22 日
Star Strider
2015 年 11 月 22 日
It doesn’t work with ‘Box’, since ‘Box’ is an axes property. The best you can do is the isprop function, but you have to have an object as an argument as well because the function looks for that property within the object.
It’s almost as though you have to know the answer before you ask the question.
rbarata
2015 年 11 月 22 日
Star Strider
2015 年 11 月 22 日
I don’t understand.
To the best of my knowledge, there’s no conservation law for objects. You use them as you need them. Properties are (to the best of my knowledge) inherent to particular objects, and are unique to each (unless you declare specific default properties that can also be individually overridden, but I’d rather not get into all that just now).
Image Analyst
2015 年 11 月 22 日
0 投票
Perhaps you want a dependency report, which you can get from the little down arrow on the title bar of the Current Folder panel.
Or you can use the methods() function which lists all the methods that a particular class or object has.
2 件のコメント
Image Analyst
2015 年 11 月 22 日
Here's my last guess: http://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9C%93&term=dependency
カテゴリ
ヘルプ センター および File Exchange で Clocks and Timers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!