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

采纳的回答

Star Strider
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 个评论
nazmul islam
nazmul islam 2017-4-8
Upon this, get(r) tells 'Invalid handle object'.
Star Strider
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 CenterFile Exchange 中查找有关 Graphics Object Properties 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by