struct2pairs( struc )

버전 1.0.0.0 (272 Bytes) 작성자: Roman Müller-Hainbach
Create cell-array with pairs of field name and field value.
다운로드 수: 18
업데이트 날짜: 2017/7/31

라이선스 보기

Storing a number of Name-Value-Pairs as a structure is convenient, maintainable and easy to read in code. User struct2pairs when passing them into a function.
Example:
...
lineconfig = struct( 'Color','r', 'LineStyle','--', 'MarkerSize',3, ... );
pairs = struct2pairs(lineconfig);
plot(data,data, pairs{:})

인용 양식

Roman Müller-Hainbach (2024). struct2pairs( struc ) (https://www.mathworks.com/matlabcentral/fileexchange/63930-struct2pairs-struc), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

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