Artifact 69d529c0b6614d0cc7afc72b3c88694bf331a386709514d6c858ab385dcfd7d6:
- File
mttroot/ntt/bin/trans/mttClipText.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: 238) [annotate] [blame] [check-ins using] [more...] - File ntt/bin/trans/mttClipText.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: 238) [annotate] [blame] [check-ins using]
function clipped_text = mttClipText(text) if isempty(text) clipped_text = [] ; else index = 1:length(text) ; useful = index(~isspace(text)) ; clipped_text = text(min(useful):max(useful)) ; end