why r= stem(5/2) = 174.0181 ?
1 次查看(过去 30 天)
显示 更早的评论
Hello, See the next line
r= stem(5/2); r= 174.0181
Note: The value of 'r' changes slightly ( & randomly), over time. Question: Yes, it shows the plot correctly (i.e. stem of 5/2), but I wonder why the value of 'r' is such? I will appreciate your time answering this!
Regards
0 个评论
采纳的回答
Star Strider
2017-4-8
The result of
r = stem(5/2);
is a plot handle. If you want to understand what it actually is, type:
get(r)
and see what it returns.
3 个评论
Star Strider
2017-4-8
In R2017a this:
r = stem(5/2)
returns:
r =
Stem with properties:
Color: [0.0000e+000 447.0000e-003 741.0000e-003]
LineStyle: '-'
LineWidth: 500.0000e-003
Marker: 'o'
MarkerSize: 6.0000e+000
MarkerFaceColor: 'none'
BaseValue: 0.0000e+000
XData: 1.0000e+000
YData: 2.5000e+000
Show all properties
Using ‘get(r)’ would have returned all the properties.
I no longer have access to R2014a and earlier versions, so I cannot explore that.
In my experience, the get function with the correct argument has always returned the properties of the object that created it.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!