Filter löschen
Filter löschen

save values of variable

1 Ansicht (letzte 30 Tage)
fereshte
fereshte am 4 Jun. 2014
Kommentiert: fereshte am 4 Jun. 2014
hi.i run a code and give me a variable. i click it and dont show me any value.but when i type in work space and press enter give me values. why? how save the values?
my variable is fittedmodel1 and attached it.
thank you

Akzeptierte Antwort

Roger Wohlwend
Roger Wohlwend am 4 Jun. 2014
The variable fittedmodel1 is a class. You cannot double-click on class variables and see what is inside. You have to use the workspace for that. To save the values just save the variable. Or extract the values and save them in a different variable.
  4 Kommentare
Roger Wohlwend
Roger Wohlwend am 4 Jun. 2014
Save the variable fittedmodel1, not the single coefficients, because you need the class to interpolate, plot or whatever. You can access the coefficients with fittedmodel1.a1, fittedmodel1.b1, ....
fereshte
fereshte am 4 Jun. 2014
how save coefficients?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Numeric Types finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by