Artifact 52367110b392cbf24f7dfd368feb04896de0d11462e1cc962d49fc4d537be674:
- File
mttroot/ntt/bin/trans/mttGetItemList.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: 612) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttGetItemList.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: 612) [annotate] [blame] [check-ins using]
function [items,item_values] = mttGetItemList(text) if isempty(text) items = [] ; item_values = [] ; else counter = 0 ; fetching_items = 1 ; while fetching_items counter = counter + 1 ; [next_item,text] = mttCutText(text,',') ; [item_name,item_value] = mttCutText(next_item,'=') ; items{counter} = item_name ; item_values{counter} = item_value ; if isempty(text) fetching_items = 0 ; end end end