Simple text-based file format for loading dictionary-like configuration data into MATLAB.
이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
Simple Configuration File Format for MATLAB
Simple text-based file format for loading dictionary-like configuration data into MATLAB.
The File Format
The simple config files are assumed to be ordinary text (.txt) files. The syntax of the files is designed to be very similar to the YAML syntax.
- configuration data can be stored as key/value pairs, delimitted using a colon (
:) - keys must be text
- values can be text, numbers, booleans, lists of text, lists of numbers, and lists of booleans
- lists are defined using square brackets (
[ ]) - list elements are delimited using commas (
,) - booleans can be specified as
false,False,true, orTrue - empty configs can be left blank (they are loaded in as empty arrays)
- lists are defined using square brackets (
- comments are started with the pound symbol (
#)
NOTE: This simple config format does not support nested dictionaries.
Example
# satellite name
name: example satellite
# satellite properties
mass [kg]: 50
drag coefficient:
area of each face [m^2]: [2, 2, 3, 1.5, 5, 5]
label for each face: [face A, face B, face C, face D, face E, face F]
# control system settings
actuators active: false
sensors active: true
Loading a Simple Configuration File
A simple config file can be loaded into MATLAB using the load_config function.
Syntax
config = load_config(file_path)
Description
Inputs
-
file_path(char array or 1×1 string) relative or absolute file path (with or without file extension)
Outputs
-
config(1×1dictionary (strings --> cell)) dictionary storing config data
Examples
- See
EXAMPLES.mlxor the "Examples" tab on the File Exchange page for examples.
인용 양식
Tamas Kis (2026). Simple Configuration File Format for MATLAB (https://github.com/tamaskis/load_config-MATLAB/releases/tag/v0.3.0), GitHub. 검색 날짜: .
일반 정보
- 버전 0.3.0.0 (7.65 KB)
-
GitHub에서 라이선스 보기
MATLAB 릴리스 호환 정보
- R2022b 이상 릴리스와 호환
플랫폼 호환성
- Windows
- macOS
- Linux
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 0.3.0.0 | See release notes for this release on GitHub: https://github.com/tamaskis/load_config-MATLAB/releases/tag/v0.3.0 |
||
| 0.2.1.0 | See release notes for this release on GitHub: https://github.com/tamaskis/load_config-MATLAB/releases/tag/v0.2.1 |
||
| 0.2.0.0 | See release notes for this release on GitHub: https://github.com/tamaskis/load_config-MATLAB/releases/tag/v0.2.0 |
||
| 0.1.1 | See release notes for this release on GitHub: https://github.com/tamaskis/load_config-MATLAB/releases/tag/v0.1.1 |
||
| 0.1.0 |
