MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Manipulate with Matrices

  • To: mathgroup at
  • Subject: [mg113620] Re: Manipulate with Matrices
  • From: roby <roby.nowak at>
  • Date: Fri, 5 Nov 2010 05:10:38 -0500 (EST)
  • References: <iatt2b$egc$>

What ever this should be good for but perhaps it is this what you

you can specify the n x n matrix to be the sum of a scalar multiple of
the identity matrix and a constant matrix.
It shows you the matrix its inverse and its determinat.

Manipulate[k IdentityMatrix[n]+ConstantArray[l,{n,n}]//{#//

On 4 Nov., 10:06, Jay <jaie... at> wrote:
> I would like to use Manipulate on matrices. For instance, allow the
> user to choose elements of a 50 by 50 matrix, and Manipulate shows the
> dynamic inverse or transpose or determinant or whatever of the so
> manipulated matrix. But I do not wish to specify ranges for the 2500
> elements separately, but rather using matrices as objects.
> For instance, I would like the user to choose a 5 by 5 matrix, whereby
> the range goes from the zero matrix to the matrix with all elements
> equal to 100, with initial matrix the identity matrix:
> Manipulate[
>  Det[nn], {{nn, IdentityMatrix[5]}, ConstantArray[0, {5, 5}],
>   ConstantArray[100, {5, 5}]}]
> How can this be accomplished? How do I tell Mathematica that nn is a 5
> by 5 matrix to start with? I would have hoped that the
> initial value shows it is a 5 by 5 matrix, but I think that does not
> work quite so automatically.
> In that sense, neither the following works,
> Manipulate[FullSimplify[Det[Array[nn, {5, 5}]]], {nn}]
> Any help much appreciated!
> Jay

  • Prev by Date: Re: Balance point of a solid
  • Next by Date: Re: Numerical solution of the heat equation on a disk
  • Previous by thread: Re: Manipulate with Matrices
  • Next by thread: Exporting to PDF in full (landscape) page size?