질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 8년 전 | 답변 수: 3 | 0

3

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 8년 전 | 답변 수: 3 | 0

3

답변

질문


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

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


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

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 8년 전 | 답변 수: 5 | 0

5

답변

질문


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

거의 8년 전 | 답변 수: 0 | 0

0

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 8년 전 | 답변 수: 1 | 0

1

답변

더 보기