## 110 Reputation

12 years, 236 days

## y axis would not start from 0...

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.

 (5)

## y axis would not start from 0...

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.

 (5)

## @pagan The answers are absolutely c...

@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 c...

@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.

## More error occuring...

@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.

## More error occuring...

@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.

## getting a nice matrix...

@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?

## getting a nice matrix...

@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?

## Continuation question...

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...

## Continuation question...

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...

## How do i pick a value in the matrix?...

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

## How do i pick a value in the matrix?...

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

## Add on question to Matrix dot product...

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
﻿