Dear me, matlab is a pain.