Re: cool new sytax feature in Mathematica 6, compete with Matlab?
- From: "G. A. Edgar" <edgar@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 13 May 2007 06:24:00 -0400
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/
.
- References:
- cool new sytax feature in Mathematica 6, compete with Matlab?
- From: Nasser Abbasi
- cool new sytax feature in Mathematica 6, compete with Matlab?
- Prev by Date: cool new sytax feature in Mathematica 6, compete with Matlab?
- Next by Date: Plz help solution existence of an inequality system Options
- Previous by thread: cool new sytax feature in Mathematica 6, compete with Matlab?
- Next by thread: Re: cool new sytax feature in Mathematica 6, compete with Matlab?
- Index(es):