Artifact 18e3a1f15b20adf4c49666e417cc6a86f46dfa2a6d720812dbd2923bbe904f32:
- File
mttroot/ntt/bin/trans/mttExtractText.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: 428) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttExtractText.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: 428) [annotate] [blame] [check-ins using]
function extracted_text = mttExtractText(text,left,right) if isempty(text) extracted_text = [] ; else where_left = min(findstr(text,left)) ; where_right = min(findstr(text,right)) ; if ~isempty(where_left) & ~isempty(where_right) extracted_text = mttClipText(text(where_left+length(left):where_right-1)) ; else extracted_text = [] ; end end