[newbie] how to address a specific element from a matrix



Either m[r][c] or m[r,c] works.  If you're having problems with m[r][c],
perhaps your objects are something other than standard Maxima matrices?

             -s

(%i2) m:matrix([a,b],[c,d]);
(%o2) matrix([a,b],[c,d])
(%i3) m[1];
(%o3) [a,b]
(%i4) m[1][2];
(%o4) b
(%i5) m[1,2];
(%o5) b

On Thu, Oct 29, 2009 at 7:51 AM, Hugo Coolens <coolens at kahosl.be> wrote:

> I entered a set of matrices without a problem, but after manipulating them
> I need to address only some elements of the matrix.
> How do I get i.e. the element on the third row and the second column.
>
> I tried things like u_32: mymatrix [3][2];
>
> but that doesn't work
>
> any help?
>
> thanks in advance
> hugo
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>