Artifact df536d2c9830189de6fd9af236af2aa4081371f732b9ab307c0c779d410eab99:
- File
mttroot/ntt/bin/trans/mttCutText.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: 416) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttCutText.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: 416) [annotate] [blame] [check-ins using]
function [left,right] = mttCutText(text,delimiter) if isempty(text) left = [] ; right = [] ; else where = min(findstr(text,delimiter)) ; if isempty(where) left = mttClipText(text) ; right = [] ; else left = mttClipText(text(1:where-1)) ; right = mttClipText(text(where+length(delimiter):length(text))) ; end end