How to call a property?

2 次查看(过去 30 天)
Fred
Fred 2013-7-18
Hi, I am relatively new in MATLAb so sorry if my question is very simple: in my workspace they are some variables which are 1*1 but they have cube on their icon and when you open them they are more variables in them (called property). How can I call one of these properties and define it as a new variable?
My variable is named "fit" (output of arima function) and I want to call Variance
Thanks

采纳的回答

Evan
Evan 2013-7-18
编辑:Evan 2013-7-18
Does the following work?
newVar = fit.Variance;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by