Sie verfolgen jetzt diese Einreichung
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
Often one comes across the need to strip a class down to its bare data - in particular in contexts of serializing/deserializing, and working with it across external interfaces.
Matlab's built in struct(cls) doesn't suffice, as the class can have properties that are classes themselves. Hence, this small utility.
Please say if it helps you, and more importantly - if it doesn't.
Doesn't require any fancy new functionality - probably works in 2009+ versions, but I'm unable to test.
Zitieren als
Ofek (2026). class2struct (https://de.mathworks.com/matlabcentral/fileexchange/58426-class2struct), MATLAB Central File Exchange. Abgerufen .
Allgemeine Informationen
- Version 1.2.0.0 (1,42 KB)
Kompatibilität der MATLAB-Version
- Kompatibel mit allen Versionen
Plattform-Kompatibilität
- Windows
- macOS
- Linux
| Version | Veröffentlicht | Versionshinweise | Action |
|---|---|---|---|
| 1.2.0.0 | Fixed shape of embedded cell arrays and matrices
|
||
| 1.1.0.0 | Documentation added and warnings handled |
||
| 1.0.0.0 |
