readParam( fileName, paramName )
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
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
