Re: cool new sytax feature in Mathematica 6, compete with Matlab?




In Matlab we type

A=rand(5,5);
A( 2:4 , 1:3 )

In Mathemtica 6, now one can type

A = Table[Random[], {5}, {5}]
A[[ 2 ;; 4 , 1 ;; 3 ]]

isn't that cool or what?


In Maple...
A := LinearAlgebra[RandomMatrix](5,5);
A[2..4 , 1..3];

--
G. A. Edgar http://www.math.ohio-state.edu/~edgar/
.