Question

Spitting matrix A into other matrices using the last two columns values

I have a matrix A A = [1 1 1; 2 1 1; 3 1 1; 4 2 1; 5 2 2; 6 2 2]; And would like to split them into different matrices (...

3 Tage ago | 1 answer | 0

Question

auto split matrix with text and numbers into other matrices (up to n)

Matrix A A = [Aaa Bbb Ccc 1 1 1 Ddd Eee Fee 1 1 1 Ggg Hhh Iii 1 1 2 Jjj Kkk Lll 1 1 2 Mmm Nnn Ooo 2 2 3 Ppp Qqq Rrr 2 2 3]...

3 Tage ago | 1 answer | 0

Question

Respective matrices for different sheets in imported file frin excel

I have 3 sheets in the 'scheduling.xlsx', with roomTable(sheet 1), contentTable (sheet 2), uniqueTable(sheet 3) filename = 'sch...

3 Tage ago | 1 answer | 0

Question

auto split matrix into other matrices (up to n)

Matrix A A = [1 55 14 1 1 1 2 55 14 1 1 1 5 35 13 1 1 2 6 35 12 1 1 2 7 35 11 2 2 3 8 35 11 2 2 3; auto split into other ...

8 Tage ago | 1 answer | 0

Question

Removing NaN in all the columns from matrix A to produce matrix B

I have matrix A A = [1 NaN 55 NaN 14 NaN 1 NaN 1 NaN 1 2 NaN 55 NaN 14 NaN 1...

8 Tage ago | 1 answer | 0

Question

Increasing value of each row from matrix A to create Matrix B, then replace 21 into 1 while the rest into 0 to create Matrix C

I have matrix A, A= [14 9 8 13 12]; I want to create matrix B where row value of matrix A increases 1 for subsequent colu...

8 Tage ago | 2 answers | 0

Question

Splitting matrix A in Matrix B and C based on column 2 values

I have matrix A A = [1 55 14 1 1 1 2 55 14 1 1 1 3 55 14 1 1 1 4 35 14 1 1 1 5 35 13 1 1 2 6 35 12 1 1 2 7 35 11 2 2 3 8...

8 Tage ago | 1 answer | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 2 answers | 0

Question

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

9 Monate ago | 2 answers | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 2 answers | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 2 answers | 0

Question

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

9 Monate ago | 2 answers | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

9 Monate ago | 1 answer | 0

Question

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

10 Monate ago | 1 answer | 0

Question

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

10 Monate ago | 1 answer | 0

Question

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

10 Monate ago | 1 answer | 0

Question

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

10 Monate ago | 2 answers | 0

Question

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

10 Monate ago | 0 answers | 0

Question

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

10 Monate ago | 1 answer | 0

Question

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

10 Monate ago | 1 answer | 0

Question

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

10 Monate ago | 1 answer | 0