Matlab Delete Last Element Of Array In Perl