Artifact d7054c9547c199ca688641298244a7b80e421b8c494a17638083d515b2c58999:
- File
mttroot/ntt/bin/trans/mttGetParameters.m
— part of check-in
[745f0b3e31]
at
2003-10-20 17:10:30
on branch origin/master
— Added initial revision of ntt:
new transformation tools for using bond graphs with Matlab.
Copyright 2003 Dr. Dominic J. Diston. (user: geraint@users.sourceforge.net, size: 539) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttGetParameters.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 539) [annotate] [blame] [check-ins using]
function [parameters,default_values] = mttGetParameters(parameter_list) [parameters,default_values] = mttGetItemList(parameter_list) ; for n = 1:length(parameters) parameter_name = parameters{n} ; mttValidateName(parameter_name) ; end for n = 1:length(default_values) default_value = default_values{n} ; if ~isempty(default_value) mttAssert(mttIsNumericText(default_value),... 'Parameter list contains non-numeric default value') ; end end