Phillip Smith
Followers: 0 Following: 0
Feeds
질문
Removing a coordinate from a list of coordinates.
Hey everyone, I have a list of coordinates, say K is a 10 by 2 double. What I'm doing is basically comparing that with anothe...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Changing the colour of the lines in a legend.
Hey everyone, I've seen this asked a few times but i can't find anything that actiually helps me. I have a matrix with 250 c...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Assigning colours to a group of columns when using plot
Hey everyone, I'm potting a matrix(M) with 50 columns. Everything plots well enough, what I want is for the first 10 columns of...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Coordinates of a 3 by 3 by 3 array
Hey, So I've made a 3 dimentional array yy=zeros(3,3,3); and I'm trying to find the position of the random 1that I have slap...
4년 초과 전 | 답변 수: 2 | 0
2
답변질문
Adding to a vector after each step of a for loop.
Hey everyone, So I have a bit of code, its function is irrelevant, that displays the number of timsteps that the it (the code...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
Storing the output of a program in a matrix
Hello, I've made a program, doesn't matter what it does, and say it's called "progA". I get the program progA to output a num...
거의 5년 전 | 답변 수: 2 | 0
2
답변질문
Picking a random row of a matrix
Hello, I have a matrix Y that's nx2. Say in this case n=5. (n can only take the values 3,5 or 8 but I guess that doesn't matter)...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
Storing the positions of neighbouring elements that have specific values.
A = zeros(5,5); A(3,4)=1; A(4,1)=1 I have a matrix of zeros with two 1's in postions (3,4) and (4,1). Starting with the 1 at ...
거의 5년 전 | 답변 수: 1 | 0
1
답변질문
Counting the number of elements surrounding another element.
Hello, I've created a matrix and have I randomly set one of these matrix elements equal to 1. Now I want to count how many elem...
대략 5년 전 | 답변 수: 2 | 0
2
답변질문
Randomly changing a value of a matrix
Hello, I've made a 5x5 matrix of zeros, I want to randomly change one of the elements to a 1 How would i go about this? Many...
대략 5년 전 | 답변 수: 1 | 0