class2struct

버전 1.2.0.0 (1.42 KB) 작성자: Ofek
Strip all class methods, leaving just the bare data as struct fields
다운로드 수: 54
업데이트 날짜: 2016/9/11

라이선스 보기

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.

인용 양식

Ofek (2026). class2struct (https://kr.mathworks.com/matlabcentral/fileexchange/58426-class2struct), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Type Conversion에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Fixed shape of embedded cell arrays and matrices
fix name

1.1.0.0

Documentation added and warnings handled

1.0.0.0