Pregunta


how to add 3 matrices with one dimension same for all and other dimension different?
If I have A=[1; 2; 3] B=[2 3 4; 5 6 7; 8 9 0] C=[3 4 5 6; 9 8 7 6; 5 4 2 1] ...

alrededor de 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


how to add a cell array in another cell array row wise?
this is the real code.. in the last loop I get 2 cell arrays total_energy_cost(i) and total_all(i,c).I want to add *total_energy...

alrededor de 7 años hace | 3 respuestas | 0

3

respuestas

Pregunta


Unknown error in running code and applying IF condition in loop
I am running this code but after running I get the error *Undefined variable cell_worker_sum.* and I cannot check the values of ...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


error in running loop : the resultant is giving an empty array
here is complete code.can anybody please check this tic; no_of_machines=7; no_of_cells=3; No_of_Parts = 6; no_...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to apply loop on 2 cell arrays where operation required is column wise multiplication of vectors in each cell?
I have *A=cell with 64 arrays each of 1X7 vector*, and *B= cell with 1806 arrays each of 7x3 matrices*. I want to _multiply each...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to multiply cell with a vector such that cell contains a matrix and each row is multiplied by different element of vector?
If I have a cell containing 2 <6x7 matrices> A={[10 0 0 10 0 20 15; 0 10 10 15 0 0 20; 10 0 0 12 11 0 0; 10 0 0 0 ...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to find the value of variable which is giving the minimum value of a function after iterations?
Ihere is an example of my question A={[1 0 0; 0 1 0] [1 1 0;0 1 0]}; B={[2 1 2;2 2 1] [2 2 2; 2 1 1]}; for i=1:nu...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to find the values of variables which give minimum value of a function after iterations
I'm running this code. after getting the minimum value from loop. I'm asking for the _corresponding matrices from cells_ _on whi...

alrededor de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


how to apply column wise operation on each matrix in cell
I want to apply a condition of cell array *allCells_array* which contains *matrices of 7x3 size*.I want to check that *if sum o...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to fix error in selecting minimum value from iteration matrix?
I'm running this code. I want to have all iterations saved in *Total_all* matrix and from that matrix select the *minimum value*...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


error in solving cell array multiplication
how can I do the column multiplication of each cell array with a vector? I have a A= 2 4 2 4 2 3 and a cell array <1x64 cell> wi...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Can matlab not perform 115880 iterations fast?its taking hours to save the result of all iterations..how to iterate over all combinations and get results in minimum time
I have an array *all_comb_ofRoutes=<1x64 cell>* and onother array *allCell_array*=<1x1806 cell> I am doing multiplication of ea...

alrededor de 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


extracting all the values from an iteration which gives the same result(minimum value from loop)
if I have a cell A and cell B for i=1:A for j=1:B do something end end minValue=min(#do somthing) final=[...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


matrix rows combination with all possibilities
I have 6 matrix, each with 2 rows. the number of combinations that can be generated are 2^6=64 how can I generate the set of al...

alrededor de 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


how to add combinatorics function in matlab with n different objects divided into r groups and each group get at least 1 object
I have 7 machines which I want to group in 3 cells such that each cell contain atleast 1 machine the numeric formula for this i...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how to run a loop over an array with matrices and multiply each matrix with an other array?
I have an array A = {[10,0,0,10,0,20,15] [0,10,10,15,0,0,20] [0,11,18,0,0,0,17] [0,14,0,17,0,10,0] [18,13,0,0,0,15,0] ...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how can I generate matrix from each cell array and then separately apply matrix operation on each matrix?
I have coded a population generation stage in genetic algorithm npop=10; Vmin=1; Vmax=3; nVar=Types_Machine; Va...

alrededor de 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


array to matrix transformation with size[ length of array , largest element in array]
I have an *array [1 1 2 3 1 2 1 ]* I want to generate a matrix of size [7x3] as length of array is 7 and maximum element is 3. f...

alrededor de 7 años hace | 3 respuestas | 0

3

respuestas

Pregunta


objective function in genetic algorithm to minimize movements
how to define this function in matlab <</matlabcentral/answers/uploaded_files/67003/Capture.PNG>> where *t*=number of part...

alrededor de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


code search for genetic algorithm
can anyone please tell me any *source to find* an *example code of GA calling function* for application in *cellular manufacturi...

alrededor de 7 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Indexing error in loop
I have this cell array Selected_route= Column 1 [1x7 double] Column 2 [1x7 double] Column 3 ...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


adding entities of 2 loops
here is a code [r1, c1]=size(Route) for i=1:c1 E=0; for j=1:Total_Operation if Route{i}(j)~...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


FOR loop on rows of a matrix
Operations_Time{1}=[10 0 0 10 0 20 15;2 0 0 2 0 2 1]; Operations_Time{2}=[10 13 0 0 12 0 15;2 2.5 0 0 3 0 1]; Route{1}=[...

alrededor de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


multiple selections from an iteration
I'm running this code. part_machine=[1 0 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 0 0...

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

1

respuesta

Pregunta


Using conditional IF statement
I have a matrix A and I generate B=randi([0,1],7,3).I want C=A*B only if sum of each row of B=1..I tried this.. A=...

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

2

respuestas

Pregunta


replace numbers with letters in a vector or matrix
optEnergyCost=[42 36 28.5 26 39.7 25 57047] optEnergyCostString=sprintf('%g',optEnergyCost) optEnergyCostString=strrep(optEn...

más de 7 años hace | 5 respuestas | 0

5

respuestas

Pregunta


naming columns and better coding
PP1=[1 1;0 1.3;0 0;1 0;0 1.2;2 0;1.5 1.5]; PP2=[0 1.1;1 0;1 1.3;1.5 0;0 1.7;0 10;2 0]; PP3=[1 0;0 1.1;0 1.8;1.2 0;1.1 0;...

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

0

respuestas

Pregunta


using sprintf for floating point numbers
optEnergyCost=[42 36 28.5 26 39.7 25 57047] optEnergyCostString=sprintf('%g',optEnergyCost) optEnergyCostString=strrep(opt...

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

1

respuesta

Pregunta


minimum value is selected always from last iteration
part_machine=[1 0 0 1 0 1 1; 0 1 1 1 0 0 1; 1 0 0 1 1 0 0; 1 0 0 0 1 0 1; 1 1 0 0 0 1 0; 0 1 0 0 0 1 1]; ...

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

1

respuesta

Pregunta


concatenation of matrix and final value
%%minimize intercellular movements part_machine= [1 0 0 1 0 1 1; 0 1 1 1 0 0 1; 1 0 0 1 1 0 0; 1 0 0 0 1 0 1; 1 1 0 0 ...

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

1

respuesta

Cargar más