Use the command 'matrix' to define a matrix, and h...

Use the command 'matrix' to define a matrix, and how to call the first row elements of the matrix?

This method

a:=matrix([[1,2,3],[4,5,6],[7,8,9]]);

a[1..2,-2..-1], does not work? Why？

How ask Maple to arrange linear equations in Matri...

I have many linear equations as below(f,g,h,...,p, are linear of S,T,..,W):

y1=f(S[i,j],T[i,j],U[i,j],V[i,j],W[i,j]);

y2=g(S[i,j],T[i,j],U[i,j],V[i,j],W[i,j]);

y3=h(S[i,j],T[i,j],U[i,j],V[i,j],W[i,j]);

.

.

.

yn=p(S[i,j],T[i,j],U[i,j],V[i,j],W[i,j]);

Where (i,j)=(0,0),...,(I,J)

How ask Maple to write them in Matrix form as below:

AX=0

Where X is: X=Transpose{S[0,0],S[0,1],S[0,J],...,S[1,0],S[1,1],...,S[1,J],...,S[I,0],S[I,1],...,S[I,J],

T[0,0],T[0,1],T[0,J],...,T[1,0],T[1,1],...,T[1,J],...,T[I,0],T[I,1],...,T[I,J],...,W[I,J]}

How call each column of matrix by loop...

Hi

How call each column of matrix by loop?

I am looking for a "rotate" type command that acce...

My last series of questions have been to do with animations. Have had some really good help. I am using a rotation type matrix so I can't readilly use the rotate command. That means painfully breaking up the body into its individual components to apply the matrix to. The matrix is derived from some very nolinear functions. I have just included a general Euler rotation matrix here. Have looked inside the rotate command but don't  have enough experience to develop my own. Now I know this sort of command would not be limited to rotating the body as a general 3x3 matrix would transform the body. That would not be a problem, could be useful for other things.

In Mathematica there is a command "GeometricTransformation" that does this.

 (1)

 (2)

 (3)

 (4)

 (5)

 (6)

Problem with plotting colors...

Hello!

I am working in a simulation, which requires me to create a checkerboard of values which I paint afterwards according to its value. The idea is to create a sequence of images (which I could export for every iteration and create into a gif/timelapse afterwards). The problem I am encountering is that when I try to plot it, I only obtain a difuse coloring scheme, without having a specific color for every pixel.

if you search for the color command in plots (http://www.maplesoft.com/support/help/Maple/view.aspx?path=plot/color) one of the examples is more or less the result I want, but I would like to have it without the gridlines and being able to control the color according to the value of the matrix in said position.

My current attempt, and the one closest to the solution is:

R:=Matrix(1..N,1..N, datatype=integer); for x from 1 to N do for y from 1 to N do R[x,y]:=P[x,y,2]*18+P[x,y,3]: od: od:R;
#P is the matrix where I do the calculations and R is the matrix I want to plot after every step of the calculation.

surfdata(Matrix(R), 1..N, 1..N, style=surface,
dimension=2, labels=["x", "y"],
gridsize=[100,100],
["Indigo","Blue","Cyan","Green","Yellow","Orange","Red"]]);
#the surfdata I resqued from another proyect I had. I know it is not thought for this tipe of grafs, but it was the closest I could come by.

I do not know if it is a better idea to use an Array or a Matrix to plot this. While the P array isn''t touched, I do not mind modifying in any way the R matrix

Thank you,

Enrique

filling matrices or arrays using a function....

Ok, I'm  a confident Matlab user, but for some reason Maple befuddles me.

Let's say I have two functions, x=f(t) and y=g(t) and I want to fill both two vectors with values, with t=-n:n.  How do I construct a loop to do that?

Matrices in Physics package...

Hello! I try to make friends physics package and matrixes. But I am faced with difficulties. To be more specific, to consider a code:

`with(Physics)``:`
```Setup(mathematicalnotation = true); Coordinates(X); Setup(tensors = A[mu](X)); PDEtools:-declare(A(X), p0(X), pm(X), pp(X), pt(X), U(X), m5(X))```

And then I create a matrix:

`pt := proc (X) options operator, arrow; Matrix(2, 2, [[p0(X), sqrt(2)*pp(X)], [sqrt(2)*pm(X), -p0(X)]]) end proc;`

It displays as:

Why do `p0, pp, pm` become function only one variable `x1`?

Interestingly that maple understands the next matrix:

Nevertheless even for function only one variable derivative works fine:

And I can construct more complicated functions:

But why is only one variable?

How do I factor a vector out of a matrix...

Hey guys,

I have this (6x1) matrix:

And I wish to factor a vector of the recurring terms out of it, this particular vector:

So that I end up with a (6x6) Matrix multiplied to that vector.

Thank you

Elementwise matrix multiplication fails. Why?...

Consider the following code:

```LM := [
Matrix([[1,2],[3,4]]),
Matrix([[5,6],[7,8]])
];
A := Matrix([[0,1],[1,0]]);
map(x -> A . x,LM);
A .~ LM;```

where LM is a list of two matrices (just a test example), and A is some (test)matrix that I want to multiply onto each of these two matrices from the left, say. The map-construction works, as expected, but the elementwise operation .~ produces an error. Why?

Adding a function to a matrix...

Hello, im a total begineer with maple and i need help defining a matrix, i need to get this into a matrix

anyone knows how could i put this in a matriz of n x 1?   (the one thats only a column)

any help would be greatly appreciated

Writing a procedure for a matrix...

Hello I was trying to manipulate maple to write a procedure checking a matrix , say A with n rows and n columns. That matrix A given any row/column the sum of the entries for every row and column are equal. For example matrix [(-1,2)(2,-1)], every row and column in this matrix sums to 1. The entries in the matrix can be any real number.

block matrix from non-square matrix...

Hi

I would like to extract the Anew matrix from the old matrix A. such that each row from Anew matrix has a square form of old matrix i.e all number from each row in the Anew form a square in my old matrix A ...

Is there any loop to determie  the Anew matrix in general  case

Such that A new

A := Matrix([[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [11, 12, 13, 14, 15, 16, 17, 18, 19, 20], [21, 22, 23, 24, 25, 26, 27, 28, 29, 30], [31, 32, 33, 34, 35, 36, 37, 38, 39, 40], [41, 42, 43, 44, 45, 46, 47, 48, 49, 50]])

Anew = Matrix([[2, 13, 22, 11], [4, 15, 24, 13], [6, 17, 26, 15], [8, 19, 28, 17], [13, 24, 33, 22], [15, 26, 35, 24], [17, 28, 37, 26], [19, 30, 39, 28], [24, 35, 44, 33], [26, 37, 46, 35], [28, 39, 48, 37]])

Many thanks

how can i construct this matrix with maple?...

all
I would like to construct a matrix with condtion that comes in picture
How can i do this with maple????
my matrix is n+1*n+1

How to display Matrixes side by side?...

Hey,

I'm doing a little experimenting on Maple and I want to display 3 Matrixes side by side with text explaining what is what. I have a for cycle in which 5 sets of 3 matrixes are made. And my goal is to display each of the 5 sets.
How would I go about doing that? I've tried the following:

display(Array(print(cat("Matriz A", k, AA[k])), print(cat("Matriz B", k, BB[k])), print(cat("Matriz D", k, DD[k]))))

But with this I end up getting this instead of what I want:

http://i.imgur.com/p087Upr.png

Any ideas are welcome, thanks in advance.

Rafael.

The code that I writed is right?...

Hello,

I have a optimization question in the following picture.

Question: find matrix T(t).

I writed a maple code. Could you view it ? You think that it is right?

The code file I writed: maple_code_of_theory.mw

It is really very important for me. Can you help me?

Thank you.

 1 2 3 4 5 6 7 Last Page 3 of 41
﻿