Items tagged with matrix matrix Tagged Items Feed

What I have done is stores algsubs names and expressions in a dual column matrix for later use. Now I need to assign them to each other. matrix is called store

column 1     column2

    a1             4.28x+2.3

    CX3          6.5x^2 +3x

    S1    ...

I'm using Linearalgebra and suppose I have a 10x10 matrix. I want to find the closest element in each column of the matrix to 100. Any idea how to do it?

Hi, I am trying to the following. When my DizLambda value is 0, I would like it to show "a" and if it is not 0 but smaller than 1.5 to show "9", otherwiese, it it is not 0 and bigger than 1.5, to show its original value. How do I do that please in its own matrix position?

restart:
with(LinearAlgebra):
interface(rtablesize=infinity):
node:=9:
Lambda:=DiagonalMatrix([3,6,4,2,5,2,3,5,3,7,4,7,4,6,8,9,2,1]):
dizLambda:=Matrix(node*2):
for i from 1 to (node*2-1) do

Hi,

I want to compute a system of linear equations when they are provided through a matrix product, and the solutions should be some numbers (rational) between 0 and 1, and one of them could be any rational number. Also, I obtain the matrix of coefficients by recursion; I mean, I have a ''for loop" in which I find recursively the matrix of coefficients, and then in each step of loop I solve the system of equations with this coefficients.

I use Maple 13. The...

sum matrix in a loop

May 09 2012 by serena88 20

Hi, I was trying to do the following but fail. May I know what does the error mean and how could I rectify it please? Thank you very much.

NULL

Hi, I have M as a 9x9 matrix. I would like to write that if any values in it is smaller than (1e-4) and not equal to zero, then show 0. If not, just reveal its original value. Please help. Thanks.

Hi,

If I have a 18x18 matrix, among are some which values are zero. If I would like to know how many of it are zero and how many are non-zero, what should I write please?

Thanks.

Hi,

Question 1:
In matlab, i write "Ck=zeros(18,18,6)" which will give me the answer Ck(:,:,1), Ck(:,:,2), Ck(:,:,3)... Ck(:,:,6).
I tried writing Ck:=ZeroMatrix(18,18,6) but it doesn't work. May I know what is the right way to write it please?

Question 2:
Relating to the above question, I now have several Ck matrix, Ck1, Ck2, Ck3... Ck6. and also several P matrix, P1,P2,P3...P6. Each Ck and P matrix are 9x9matrices. How can I write A:=Ck*P to give...

Hi, I have a list of 15 numbers. I am trying to fit it into a triangular matrix. It will be a 6x6 matrix with zeros in the diagonal lines.

The first number will go into the M12, second number will go into M13, followed by M14... then, the six number will go into M23, seventh number into M24 and so on.

Here is what I got so far:

Z is a diagonal 6x6 matrix

node:=3
for i from 1 to (node*2-1) do

Hello,

 

we have to create program which shows chemical concentration changes, but this concentration depends on time and distance along the longitudinal axis. So we have to put numbers into the left side 41x41 matrix from 3 equations:

A:=1, B:=1,E:=0.2, Δx:=0.25,Δt:=0.025.


first when i=0;

Hi, I am trying to put a for loop inside another for loop, but it is not working. but if i split it up, it works, may I know what is it i miss out please?

eta is a diagonal matrix.

I tried writting

for i from 1 to 17 do
nod:=(2*(i-1))+1;
diz:=eta(i,i)
end do

for j from 2 to 18 do
nod:=(2*(i-1))+1;
diz2:=eta(j,j)
end do

but when i try to combine it

for i from 1 to 17 do
for j from 2 to 18 do

Hi, How do I check what sort of matrix is it by asking the right question?

For example, M is a 3x4Matrix

I type in "whattype(M)", it gives me the answer "matrix".

May I know what I should type so that it shows me that it is a "3x4 Matrix" please?

Thanks

 

Hi, I have a 18x1 matrix. I am trying to sort it from smallest value to the largest value. But how to I as it to show which was the original position?

For example, M is my 18x1 matrix, i wrote "sort(M)".

In matlab I would write [Q,F]=sort(M);

Q will rearrange it for me and F will tell me the original position where it is from.

Please advice. Thank you very much.

Dear All,

I would like to know the easiest way to write data, that are stored in a matrix after a computation, to a file with a specific format. To be more precise, I wish to have the possibility to change the format for a given column.

Here is a trial (output is wrote to the terminal for simplification) based on some examples I found, but without success.

WritedataMatrix.mw

Hi,

My E01, E02 and E03 are 3x3 matrix

a:=1:  ##how many times matrix E01

b:=3:  ##how many times matrix E02

c:=2:  ##how many times matrix E03

I would like to write EM:=[E01,E02,E02,E02,E03,E03].

If i change the values of a,b and c, i would like it to change on EM too.

For example, when i change a=2,b=2,c=1 would give me EM:=[E01,E01,E02,E02,E03]

How could i do that please? Please advice.

1 2 3 4 5 6 7 Last Page 1 of 14