Pregunta


Rearrange randomly just some parts of an array
Given C = [1 2 1 2 1 2 1 2 4 2 4 2 4 2 4 2 6 2 6 2 6 7 6 7 6 7 6 7 7 7 7 7 8 8 8 8 9 9 9 9 ] I want to rearrange randomly jus...

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Create a new array from an intersection of two previous arrays
Hi given the following arrays A = [1 1 1 1 4 4 4 4 6 6 6 6 6 6] B = [2 2 2 2 2 2 2 2 2 2 7 7 7 7 7 7 7 7 8 8 8 8 9 9 9 9] I w...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create two arrays on the basis of other arrays
Given SP = [1 2 4 6 7 9 10] V = [5 20 10 15 5 20 10 ] I want to obtain the two following two arrays A = [1 1 1 1 1 4 4 4 4 4...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create a sequence that take into account two arrays
Given the arrays SP = [1 2 4 6 7 9 10] V = [5 20 10 15 5 20 10 ] I want to create a random array P that contain the elements...

más de 4 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Create a random sequence based on a matrix columns
Hi, given the following matrix A= [1 3 2 4 5 8 9 11 14; 0 0 0 7 6 12 0 0 0; 0 0 0 0 10 13 0 0 0]; I want to cre...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create a sequence based on other arrays
Given the arrays SP = [1 2 4 6 7 9 10] V = [5 20 10 15 5 20 10 ] I want to create a random array P that contain the elemen...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Cut a matrix after a certain value
Given the following matrix Acum=[116.200000000000 237.300000000000 329.300000000000 391.200000000000 561 619.90...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Rearrange elements in an array based on another array
Hi, given the following matrix V= [12 11 9 8 10 6 8 7 9 5 4 6 9; 8 10 7...

más de 4 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Mantain a variable for the next cycle
Hi, I've generate a code and I want to run the code different times. Everytime I run the code I would like to mantain a variab...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create arrays based on cell arrays
Hi, given the following code clear all clc G= {[1 2 1 2 1 1 1 2 3 4 4 5 4 5 5 4 4 5 5 4 6 6 6 6 6 6 3 3 9 9 3 9 9 9; 5 10...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Modify a cell array referring to another cell array
Given the following code G= {[1 2 1 2 1 2 3 4 5 4 5 4 6 3 9 3 9; 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85],[1 1 1 1 2 ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create an array from a cell array
Given the following cell array G= {[1 2 1 2 3 4 5 4 5 4 6 3 9 3 9; 5 10 15 20 25 30 35 40 45 50 55 60 65 70...

más de 4 años hace | 3 respuestas | 0

3

respuestas

Pregunta


Switch case on an array
Given the following code TA = 0 TB = 0 TC = 0 x = [12 64 24]; s = num2str(x); n = length(s) for k=1:n switch s(k) ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Divide an array in n different arrays
Hi, given the array V = [1 1 1 1 1 1 6 6 6 6 6 6 6 6 6 3 3 3 3 3 3 3 5 5 5 5 5 5 5 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 4 4 4 4 ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Try to mix as much as possible elements inside an array
Given a vector V = [1 1 1 1 1 1 1 4 4 4 4 4 1 1 1 1 1 4 4 4 4 4 4 5 5 5 5 5 5 8 8 8 8 8 8 5 5 5 5 5 5 5 5 6 6 6 6 6 6 8 8 8 ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Remove NaN inside a loop cycle
Given the following code V = [ 19 15 11 2 16 3 1 18 14 3 18 19 1 13 16 14 19 15 4 14 3 1 2 16 4 3 1 19 3 20 4 13 1 15 2 18 4 1 ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create a random sequence with specified values
Given a matrix A= [0 15 11 2 4 0 3 1 13; 14 0 16 0 0 0 0 0 0; 0 0 0 0 8 0 0 0 0; 0 ...

más de 4 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Rearrange a given array
Given a vector V = [ 19 15 11 2 16 3 1 18 14 3 18 19 20 1 13 4 14 3 1 2 16 4 3 1 19 3 20 4 13 1 15 2 18 4 1 20 19 17 3 1 13 20...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Create a matrix from a vector
Given the matrix M M = [6 15 11 2 4 7 3 1 13; 14 0 16 0 5 9 0 0 0; 0 0 17 0 8 12 0 0 0; 0 0...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Created random sequence based on predefined vector
Given a vector SP = [1 2 4 5 8 11 13 14 15 16 18 19 20]; I want to create random sequence based on the vector Y = [4 24 35 8 ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Count how many elements are present inside arrays
Given the following vector V= [1 2 3 4 7 8 9 10 11 12 14 16 17]; and the vectors P = [1 2 3 4 7 8 9 10 11 12 14 16 17 2 7 9 ...

más de 4 años hace | 4 respuestas | 0

4

respuestas

Pregunta


Recall elements inside the rows of a matrix based on a predefined array
Given the following matrix M= [ 58 116.4 78.5 72.5 163.6 60.4 100 66 117 65 55; 58.3 123.1 89.8 87.4 167.7 61.3 100 66 117 65...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Subtract raws of a matrix from an array
Given the following array Q= [42 42 42 42 42 42 ] and a matrix M M= [33 38 31 37 35 37 ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Count the number of same elements in an array
Hi given a vector V = [ 1 2 4 3 4 2 3 5 6 4 5 6 8 4 2 3 5 7 8 5 3 1 3 5 7 8 9 5 3 2 4 6 7 8] I would like to count how many t...

más de 4 años hace | 4 respuestas | 0

4

respuestas

Pregunta


Fill an array over an iteration
Given the following code D= [1 2 3 ; 4 5 6 ] for i= 1: size(D,1) M = [4 2 4 3 2; 2 1 3 1 2; 4 1 2 3 1]; r= size(M,1)...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Find a raw position referred to a value in a matrix
Hi given the following matrix A = [110 220 330 440 550 660 770 880 990 1100; 220 330 440 550 660 770 880 990 1100 1210; 330 4...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Add a value to an element in a matrix
Hi, Given the following matix D=[1 2 3 4 5 6 7 8] A(1:length(D),1:10) = 110 S= [0 0 8 0 0 8 0 0; 0 0 0 5 0 0 0 0]; I wa...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


SIMEVENT predefined attribute generation
Hi given a matrix A A = [1 2 7 5 6 6 7 8 5 3 4 2 1 3 5 6; 1 6 1 1 1 2 7 9 5 3 2 2 3 3 4 6; 3 1 3 6 8 2 7 9 5 3 4 2 2 5 5 6] I ...

más de 4 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Find total completion time of jobs
I have two different part that requires 4 different jobs. the time requested by each job is reported in the matrix M. The raws r...

más de 4 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Create a for cycle over an array
In my case I have X different job with Y different duration D = [2 3 4 4 5 6 7 3 ]; so job X=1 will last Y=2. I need to writ...

más de 4 años hace | 3 respuestas | 0

3

respuestas

Cargar más