serena88

110 Reputation

7 Badges

12 years, 236 days

MaplePrimes Activity


These are replies submitted by serena88



Hi, I have these values below. A:=1

I would like to plot xaxis from 0 to Pi, which is correctly plotted as below. And my yaxis I would like to plot it starting with 0, but it is not. I tried adding ,y=0..w at the end of the plot command but it wouldn't allow. Could you please help me? Thank you.

 

abs(phi)

Matrix([[.5787581022], [.5694811897], [.5425243903], [.5004839353], [.4478175464], [.3910550783], [.3392026872], [.3033806786], [.2932455096], [.3100467592], [.3456583158], [.3898358029], [.4354957031], [.4792345229], [.5204609513], [.5604228501], [.6014438982], [.6462057735], [.6970970985], [.7557754940], [.8228834675], [.8981024069], [.9802343951], [1.067439287], [1.157348263], [1.247225265], [1.334059809], [1.414700180], [1.486011752], [1.545040382], [1.589232389], [1.616587808], [1.625854292]])

(5)

FSE := abs(phi)*A:

Statistics[ScatterPlot](theta/Pi, FSE/A)

 

``

 

NULL



Download 17th_Feb.MyData.mw



Hi, I have these values below. A:=1

I would like to plot xaxis from 0 to Pi, which is correctly plotted as below. And my yaxis I would like to plot it starting with 0, but it is not. I tried adding ,y=0..w at the end of the plot command but it wouldn't allow. Could you please help me? Thank you.

 

abs(phi)

Matrix([[.5787581022], [.5694811897], [.5425243903], [.5004839353], [.4478175464], [.3910550783], [.3392026872], [.3033806786], [.2932455096], [.3100467592], [.3456583158], [.3898358029], [.4354957031], [.4792345229], [.5204609513], [.5604228501], [.6014438982], [.6462057735], [.6970970985], [.7557754940], [.8228834675], [.8981024069], [.9802343951], [1.067439287], [1.157348263], [1.247225265], [1.334059809], [1.414700180], [1.486011752], [1.545040382], [1.589232389], [1.616587808], [1.625854292]])

(5)

FSE := abs(phi)*A:

Statistics[ScatterPlot](theta/Pi, FSE/A)

 

``

 

NULL



Download 17th_Feb.MyData.mw

@pagan The answers are absolutely correct, just wondering if I could have it as a big block of Matrix instead of having many [][][].

Additional question: Why is it that whenever I run the for loop, it gives me a different outcome for my "Big". How can I make stay? I always press restart, but is there a more accurate way to do it?

Thank you.

@pagan The answers are absolutely correct, just wondering if I could have it as a big block of Matrix instead of having many [][][].

Additional question: Why is it that whenever I run the for loop, it gives me a different outcome for my "Big". How can I make stay? I always press restart, but is there a more accurate way to do it?

Thank you.

@pagan Hi, due to the reason that i'm using a "for..do" everytime i rerun the problem, the answer double, because it is reading as i=1, i=2, i=3.....

But how do i write it as a 33x33 matrix, adding the corners, having my answers not change everytime i press enter? please advice. Thanks.

@pagan Hi, due to the reason that i'm using a "for..do" everytime i rerun the problem, the answer double, because it is reading as i=1, i=2, i=3.....

But how do i write it as a 33x33 matrix, adding the corners, having my answers not change everytime i press enter? please advice. Thanks.

@pagan Hi, the output is correct, but may I know why is it in a weird matrix form and not a nice 33x33 matrix?

for example : it does not give me a proper 33x33 matrix it gives me in lines :

[..........]
     [...........]
  [...........]       etc...

Is there a way that I can make it nicer?

@pagan Hi, the output is correct, but may I know why is it in a weird matrix form and not a nice 33x33 matrix?

for example : it does not give me a proper 33x33 matrix it gives me in lines :

[..........]
     [...........]
  [...........]       etc...

Is there a way that I can make it nicer?

Hi, I have a vector V:=<11,12,13>

If I want it to be a diagonal matrix, I put D:=Matrix(V,shape=diagonal)

If I want a 33x33 matrix, with my values of V keeps on repeating itself diagonally, how do I do that?

For example :

[11 0 0 0 0 0 0 0 0 0 0 0 ]
[0 12 0 0 0 0 0 0 0 0 0 0 ]
[0 0 13 0 0 0 0 0 0 0 0 0 ]
[0 0 0 11 0 0 0 0 0 0 0 0 ]
[0 0 0 0 12 0 0 0 0 0 0 0 ]
and so on...
 

Hi, I have a vector V:=<11,12,13>

If I want it to be a diagonal matrix, I put D:=Matrix(V,shape=diagonal)

If I want a 33x33 matrix, with my values of V keeps on repeating itself diagonally, how do I do that?

For example :

[11 0 0 0 0 0 0 0 0 0 0 0 ]
[0 12 0 0 0 0 0 0 0 0 0 0 ]
[0 0 13 0 0 0 0 0 0 0 0 0 ]
[0 0 0 11 0 0 0 0 0 0 0 0 ]
[0 0 0 0 12 0 0 0 0 0 0 0 ]
and so on...
 

Hi, may I know how do i pick a value in the matrix to do further calculation please? for example, the matrix above, i would like the pick up the value in row 3 column 3 which is 32. Please advice. thanks

Hi, may I know how do i pick a value in the matrix to do further calculation please? for example, the matrix above, i would like the pick up the value in row 3 column 3 which is 32. Please advice. thanks

Hi, I have another add on question regarding the dot product of matrix :

with(LinearAlgebra):

A:=Matrix([[3,t,2f],[k,4,w]])   ###2x3 matrix

B:=Matrix([[g],[h],[m]])   ###3x1 matrix

Method 1 : why can I not get "DotProduct(A,B)"?

Method 2: but when I put down "A.B", it gives me the answer.

I try again with C:=Matrix([[a,b]])   ###1x2 matrix

I then put down "B.C" (not possible case) which gives me a wrong answer, hence, I cannot use the second method. Could you let me know how do I make the Method 1 work please?

 

1 2 3 4 5 6 Page 4 of 6