질문

sorting matrix in ascending order based on column 1 (and ascending order also for column 2)

Hi all, is there a way to sort A in ascending order based on column 1, allowing its other columns to follow with it A = [1 2 5...

2달 전 | 답변 수: 1 | 0

질문

determine minimum from the first column values of matrix and removing the rest of the rows

Hi everyone, I would like to select only the min of matrix, E from values of the first column of the matrix E = [0.1 1 19 1...

2달 전 | 답변 수: 1 | 0

질문

selecting rows from C with associated values in D, while using A and B values as references to produce E and F matrices

Hi everyone, I have 2 matrices, A and B, that I want to use as reference to draw out certain rows in C and attached associated ...

2달 전 | 답변 수: 2 | 0

질문

remove repeated rows to produce two new matrices

Hi everyone, I have 2 matrices, A and B. As you can see, everyrow in A is for a particular row in B. What I want to to do is for...

2달 전 | 답변 수: 2 | 0

질문

find possible combinations of each row of matrix and allocate their respective values into 2 different matrices

Hi everyone, I have 2 matrices, A and B. I would like to produce C and D by 1) listing down possible combinations within each ro...

2달 전 | 답변 수: 1 | 0

질문

remove row in A by referencing on another matrix, B, with true or false to produce another matrix c

Hi everyone, I want to reduce remove rows in matrix A, by referencing on matrix B to produce C. In this case, if its TRUE, remov...

2달 전 | 답변 수: 1 | 0

질문

remove specific rows by referencing on the first digit of each row.

Hi everyone, I want to reduce remove rows in matrix A, by referencing on the first number in each row to get B. In this case, if...

2달 전 | 답변 수: 2 | 0

질문

Removing certain rows from B using A as reference to produce C

Hi everyone, I have A and B. I would like to use the values of A as reference to remove rows in B to get C A =[11; 12; ...

3달 전 | 답변 수: 1 | 0

질문

Undefined variable "Tmax" or class "Tmax".

Hi everyone, I keep getting this message very infequently, sometimes my code is working, and sometimes it does. Does anyone coul...

3달 전 | 답변 수: 1 | 0

질문

reduce rows of a due to b

Hi everyone, I have 2 matices, A and B a = [0 1 0 0 1 1 1 0 1 1 1 1]; b =[1 1 1 0 1 1]; Is it poss...

3달 전 | 답변 수: 2 | 0

질문

store which iterations that the error took place

Hi everyone, I've been using try,catch and continue in my loop for any error. I was wondering is there any code that captures wh...

3달 전 | 답변 수: 2 | 0

질문

Allocate certain numbers to create a new matrix from A and B

Hi everyone, just having this thought. I have two matrices A and B. A = [1 1 1 0; 1 1 0 0; 0 1 0 1;]; B = [1 2;...

3달 전 | 답변 수: 1 | 0

질문

Loop to generate random numbers and compile results for each iterations

Hi everyone, I've been trying to do a loop (i know I could just use rand(100000000,5) for what I want to achieve. May I know if ...

3달 전 | 답변 수: 1 | 0

질문

Generate random numbers in a loop and then store them

I have the code below where I want to generate 1 000 000 random numbers. Then I compare random numbers generated from A to B. If...

3달 전 | 답변 수: 1 | 0

질문

Summing up values of A matrix if it matches the same value in B

Hi everyone, I have 2 matrices A and B A =[1; 2; 1; 3; 4; 5; 6;]; B = [40.5511; 40.5511;...

3달 전 | 답변 수: 1 | 0

질문

emptying each row of matrix of a in a loop then uses respective matrices produced from it to get a certain value

I have a matrix, a a = [1 2; 1 3; 1 5; 1 7; 1 8;]; and this matrix a, is emptied in each row per loop unt...

3달 전 | 답변 수: 1 | 0

질문

emptying each row of a matrix in a loop

Is there a way to empty each row of a matrix in a loop? For example a = [1 2; 1 3; 1 5; 1 7; 1 8;]; first...

3달 전 | 답변 수: 1 | 0

질문

running matrix in a loop to produce another matrix

Hi everyone, I have z z = [1 1 0 0; 1 0 1 0; 1 0 0 1; 0 1 1 0; 0 1 0 1; 0 0 1 1;] each of z's row are states that I want ...

3달 전 | 답변 수: 1 | 0

질문

determine combination of elements in matrix

I have a matrix, X x = [1 1 1 1] and I know if I introduced one zero to x, possible combination 4^1=4, which gives me, y y = ...

3달 전 | 답변 수: 2 | 0

질문

generate more random numbers

Hi everyone, when i try to generate more 100 million random sample, I memory issue with matlab. Is there a way to generate mor...

3달 전 | 답변 수: 0 | 0

질문

modify a certain section of the axis while keeping the rest

Hi everyone, I'm produced this plot using this codes figure z1 = stairs(x1, y1, 'LineWidth',1) hold on; z2 = stairs(x2, y2, ...

3달 전 | 답변 수: 1 | 0

질문

how to plot step graph

I want to plot a step graph using the two matrices below: W = [0.992; 0.997; 0.99996; 0.99997; 0.999992; 0.999995; 1.0000;]; ...

3달 전 | 답변 수: 1 | 0

질문

Arrange be in order of their pairing, and count how many times they appear

I have 2 matices, A and B. What I want to do is for B to be rearranged like C, and remove any repreated row. A = [1; 2; 3; 4; ...

3달 전 | 답변 수: 1 | 0

질문

Repeat numbers of X based on Y to produce Z

I have 2 matrices, X and Y, and using these 2 matrices I would like to produce a third one called Z. X = [1; 2; 3; 4; 5;] Y = ...

3달 전 | 답변 수: 2 | 0

질문

List combinations and count how many it appears

I have 2 matrices, W and Y. Using both as references, I want to list the different combinations and count how many times it appe...

3달 전 | 답변 수: 2 | 0

질문

ask to change input values and derive a new matrix

I have W, and I want to be asked if I want to change any of the numbers in W(1,1), W(2,1), W(3,1), and W(4,1). W = [2; 3; 4;...

3달 전 | 답변 수: 1 | 0

질문

count numbers greater than zero, and determine among them has the highest number of count

I have matric Y, and I want to count how many numbers (i.e. more > 0) in row, and determine the highest value % Raw data Y= [...

3달 전 | 답변 수: 1 | 0

질문

sharing values of elements in a matrix

Hi All, I've attached my questions for your reference - It was hard to paste here.

4달 전 | 답변 수: 0 | 0

질문

Produce a new matrix,Z from X and Y matrices

I have 2 matrices, and I would like to derive another matrix, Z from X and Y. So for each row starting and ending the same, sum ...

4달 전 | 답변 수: 1 | 0

답변 있음

assign values for the list of numbers in the column from a look up lable

Thanks Walter, it is working!

assign values for the list of numbers in the column from a look up lable

Thanks Walter, it is working!

4달 전 | 0