How to call a property?

5 Ansichten (letzte 30 Tage)
Fred
Fred am 18 Jul. 2013
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

Akzeptierte Antwort

Evan
Evan am 18 Jul. 2013
Bearbeitet: Evan am 18 Jul. 2013
Does the following work?
newVar = fit.Variance;
  2 Kommentare
Fred
Fred am 18 Jul. 2013
Yes Thanks
Evan
Evan am 18 Jul. 2013
No problem. :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by