이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
matcode = SERIALIZE(x) generates matlab code of x
matcode = SERIALIZE(x, n) generates matlab code of x retaining n digits
of precision
SERIALIZE should be able to create matlab code of the following data types:
- matrices, vectors, and scalars of any class and dimension
- strings
- structs, arrays of structs with up to six dimensions
- cell arrays
- matlab objects with a copy constructor implemented
- empty values of any class
- any combinations hereof
The value of x can be obtained by
eval(matcode)
Examples
x = [1 2 3; 3 4 5];
serialize(x)
x = uint8(rand(10)*5);
matcode = serialize(x)
x = {rand(3,3,3,4), 'a string value', {1 2 3; 1 3 3 }}
matcode = serialize(x, 30)
인용 양식
Jøger Hansegård (2026). serialize (https://kr.mathworks.com/matlabcentral/fileexchange/12063-serialize), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 준 파일: Serialize/Deserialize
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 | Fixed bug when serializing strings with special characters |
