Community Profile

photo

Bathrinath


Kalasalingam University

Active since 2012

Research student

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


array fetching and placing in matrix
I have a matrix c = [0 0 0; 0 0 0; 0 0 0] from the command c=zeros(3,3). My array p...

bijna 6 jaar ago | 1 answer | 0

1

answer

Question


Need a bipartite graph for the 0-1 matrix
I have a matrix A = [0,1,0,1,0,0,1; 0,0,1,0,1,0,0;1,1,0,1,0,0,1;1,0,1,0,0,1,0;0,0,1,1,1,1,0]. I need a bipartite graph. How to ...

bijna 7 jaar ago | 0 answers | 0

0

answers

Question


array multiplication with a negative value
A=[0,-2.2,-3.3,-25;1.2,0,-1.1,12;2,-8,8,0] my answer is to be A=[0,-2.2,-3.3,-25;-1.2,0,-1.1,-12;-2,-8,-8,0]. I need to convert ...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


subtraction and multiplication of two arrays
t=[19;25;29;69];T=[19;25;29;69]; i have to do the subtraction and multiplication operation using A=0.3*(t-T) to get 4X4 matrix. ...

ongeveer 8 jaar ago | 2 answers | 0

2

answers

Question


comparing and addition of two matrices
a=[9,41,48,0,0,0,0,0;15,47,56,0,0,0,0,0;25,67,0,0,0,0,0,0];b=[21;11;30]; I am having three rows in a and b. I need to compare a ...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


find minimum value greater than zero in the rows
a=[9,32,7,0,0,0,0,0;15,32,9,0,0,0,0,0;25,42,0,0,0,0,0,0];i have to find out minimum value in 'a' which should be greater than ze...

ongeveer 8 jaar ago | 2 answers | 0

2

answers

Question


I need to store every iteration in curve using plot
For every iteration i want to store values in x and y axis, where x is number of iteration and y is BestFitness.I have given the...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


Debugging the code which is written with global function
I am trying to modify the code in which code is written by declaring global, and all functions are in the same page. If I am try...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


move values from uneven size matrix
I have created 100x6 matrix with zeros. I need to move the first row of gbestseq to first row of globbestseq and remaining rows ...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


Finding index for minimum value in array
I need to find the index for the minimum value in pbest other than '0'. I got the value using the following code but I have the ...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


randperm for multiple times
Hi, I need randperm has to be generated for 100 times which has to be saved in 'a'. Suggest some points. n=6; a=zero...

ongeveer 8 jaar ago | 1 answer | 0

1

answer

Question


Adding rows with constraint
a=[10,11,8; 6,5,7; 4,6,5; 0,0,5]; output=[10,11,8; 16,16,15; 20,22,20; 0,0,25]; First row should be as it is, in the second ...

meer dan 8 jaar ago | 2 answers | 0

2

answers

Question


Fetching data to the matrix in a particular sequence
m=3; p=[5,8,10,11,6,7,9]; seq=[3,4,2,6,5,1,7]; out=[10,11,8;6,5,7;0,0,9]; Since m=3 I have to place all these valu...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


Insertion of the index
The number of jobs n =4 which are in k = [3,2,4,6]. First index value in k is 3, now i need to insert the first index value...

meer dan 8 jaar ago | 2 answers | 0

2

answers

Question


comparing and deleting the elements in array
x = [3 2 5 1 6 4; 4 1 3 5 2 6; 1 5 6 3 4 2; 1 5 6 2 3 4; 4 1 3 2 5 6 ]; y = [3 2 5; 4 1 3]; in this case 'y' has to be be comp...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


how to get factorial combination
a = [ 3 4 2 6 5 1]. I need 6! comibination of 'a'. We know that 6! is 720. From 'a' I need 720 different combinations. How to ge...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


how to make factorial
hello, let the number of machines 'm' = 3 and number of jobs 'n' = 6.The given sequence is 3-4-2-6-5-1. I need 6! combinat...

meer dan 8 jaar ago | 0 answers | 0

0

answers

Question


summing up array element
Hello, I am new to programming, I have an array like p = [3 6 2 5]; I need c = [3 9 11 16]; First element in the array is as i...

bijna 9 jaar ago | 4 answers | 0

4

answers

Question


Removing elements in an array
Hi, I want to remove the elements which has zero values. aaa = [ 0 0 2 3 0 6 ] I need aaa = [ 2 3 6 ] Sugg...

ongeveer 10 jaar ago | 1 answer | 0

1

answer

Question


Alternate for flipr command in matlab
Hi, m = 3; n = 8; There are 8 elements in A A = [33,47,44,49,40,21,45,48]; After sorting in descending order A = [...

meer dan 10 jaar ago | 2 answers | 0

2

answers

Question


for loop query
Hi, m = 3; c = [40,39,36,30,22,21] I have to get the answer in matrixformat d= [40 39 36 ; 21 22 30] as my machine size ...

meer dan 10 jaar ago | 1 answer | 0

1

answer

Question


Sort the matrix corresponding to row
Hi, I am new to matlab,can any one help me for sorting the matrix AA =[2,3,4,5,1,6;21,22,30,36,39,40] In the matrix A...

meer dan 10 jaar ago | 1 answer | 0

1

answer