def matlabize(s):
    """Make string s suitable for use as a MATLAB function/script name"""
    s = s.replace(' ', '_')
    s = s.replace('.', '_')
    s = s.replace('-', '_')
    assert len(s) <= 63 # MATLAB function/script name length limitation
    return s