ini2struct

Parses .ini file into a structure

Ahora está siguiendo esta publicación

This function parses a .ini file
and returns a structure with section names and keys as fields.
Based on init2struct.m by Andriy Nych
Updated to allow in-line comments, remove optional text-quotes, keep case and convert numeric values. Only 45 LoC.

Param A = 5 4 3 # data: any numeric type
[My app] # spaces allowed everywhere
Title b = Cool program # text: no, single or double quote

struct = ini2struct('example.ini')

struct.ParamA: [5 4 3]
struct.MyApp.TitleB: 'Cool program'

Citar como

freeb (2026). ini2struct (https://es.mathworks.com/matlabcentral/fileexchange/45725-ini2struct), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspirado por: struct2ini, ini2struct, INI Config

Inspiración para: Machine_learning_PRTools.zip

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0