Artifact 4f00712084d1bf90cad79482637d0bcb386f4a19508d4e6aff4f182d7eeac68c:
- File
mttroot/ntt/bin/trans/mttSeparateText.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: 391) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttSeparateText.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: 391) [annotate] [blame] [check-ins using]
function [left,right] = mttSeparateText(text) if isempty(text) left = [] ; right = [] ; else whitespace = min(find(isspace(text))) ; if isempty(whitespace) left = text ; right = [] ; else left = text(1:whitespace-1) ; right = mttClipText(text(whitespace+1:length(text))) ; end end