Artifact 3bacd6b720d4cedbb6f5d7ad9cdad8cc55f77fc8b97280f6d32f26aa2cf598c2:
- File
mttroot/ntt/bin/trans/mttDetachText.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: 498) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttDetachText.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: 498) [annotate] [blame] [check-ins using]
function [detached_text,preceding_text] = mttDetachText(text,delimiter) if isempty(text) detached_text = [] ; preceding_text = [] ; else where = max(findstr(text,delimiter)) ; if isempty(where) detached_text = [] ; preceding_text = mttClipText(text) ; else detached_text = mttClipText(text(where+length(delimiter):length(text))) ; preceding_text = mttClipText(text(1:where-1)) ; end end