readParam( fileName, paramName )

Reads in parameters from file separated by #'s. The delimiter can be changed.
63 download
Aggiornato 18 lug 2016

Visualizza la licenza

To change the delimiter, you must change the '#' on line 14 to any other character.
% This function will read a file for the requested parameter. This will
% be useful when you forget how your code works and need to tune it
% written by Kevin Sheridan, for use under GPLv3
% INSTRUCTIONS:
% use: value = readParam('fileName.txt', 'parameterName')
% A PARAMETER FILE EXAMPLE:
% param1 #1.3567# unit/explanation
% param2 #-2.7896# m/s (the speed of object X)
% ...

Cita come

Kevin Sheridan (2025). readParam( fileName, paramName ) (https://it.mathworks.com/matlabcentral/fileexchange/58283-readparam-filename-paramname), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Import Data in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0