Community Profile

photo

Vishal Sharma


Aktiv seit 2017

Statistiken

  • Thankful Level 3

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


How to generate all combinations of a vector
I want to generate all possible combinations of a vector A=[1 2 3] to get answer [1 1 1; 1 1 2; 1 1 3; 1 2 1; 1 2 2; 1 2 3]

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How sort rows of matrix as per given index
I have a matrix, A A = [1 2 3, 4 5 6, 7 8 9]; I want to sort rows of this matrix as per sequence of [2nd row; 3rd row; 1st r...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to solve multi objective problem (Goal Programming) in Matlab
I have a multi objective problem (Goal Programming)... Maximise Z = 3x + 4y Minimise Z = 5x +6y Subject to constrai...

mehr als 6 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How to count frequency of non zero elements col wise
I have a matrix A = [ 1 2 3 0 0; 2 2 0 2 1; 1 0 2 3 1] I want to count column wise frequency of occurrence of a...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to find character data in cell array and write in single column
A cell array has following character data A{1,1}=[' '] [' '] ['Smith'] [' '] ; ['False'] [' '] [' '] [' '] ; ...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to add more variables in script function file....
I want to create a function handle in which 1200 variables are to be added.... function [f] = temporary(X) f(1) = 15 ...

fast 7 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How to replace non zero value with character
Matrix A = [0 0 1; 1 0 0;0 2 0]; I want to create another matrix replacing non zeros elements (i.e. (1,3), (2,1), (3,2) with ...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to get minimum value among more than two matrix
I have 5 matrix of following values as per below:-- A = [1 2 3;0 0 5] B = [3 2 3;0 0 3] C = [1 5 3;0 0 2] D = [7 2 3...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how to make cumsum in ascending order of values
I have a matrix A = [1 2 4 7; 2 3 1 6; 4 5 6 15] . The last column is sum of rows I want to make a...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to sum two rows at a time in matrix
I have a matrix of size 6 by 3 A = [1 2 3; 3 4 5; 4 5 6; 5 4 3; 3 4 3; 3 2 1] I want to make sum of two rows at a time, so...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to replace minimum values with 0 and maximum with 1 in an array
I have an array of A = [ 1 4 3 4 3 4 5 6 4 5 6 7; 2 3 4 5 3 4 5 6 2 3 4 2] I want to replace maximum value in ...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to solve multi objective problem using GA
I have a multi objective problem (Goal Programming)... Maximise Z = 3x + 4y Minimise Z = 5x +6y Subject to constraints ...

fast 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to convert Cell Array index into Matrix with ones
I have cell array of A having values A {1,1} = [2] A {1,2) = [2, 3] A {1,3} = [3] A {1,4} = [3, 4] Based on thi...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to check elements with value of 1’s in adjoining rows
A = [1 1 0 0; 0 1 1 0; 0 1 1 0; 0 0 1 1; 0 0 1 1] How to check the result of 1’s in adjo...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to create array of alphanumeric
I want to make array of A1 A31 A61 A91 Please suggest me code

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to sort vector with respect to another vector
I have one vector A= [11; 12; 13; 21; 22; 31] A = 11 12 13 21 22 31 And another vector B = [5; 2; 1; 3; 4; 6] B ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


special case of permutation combination with same sequence
I have a problem of special case of permutation combination From nos from 1 to 30 . Supposing a permutation combination from ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


To find a vector subset of a matrix in sequence?
I have a vector A = [1 2 3] And another matrix B = [2 3 4 1; 1 2 3 4; 2 4 1 3; 2 3 1 4] I want to know which row of vector...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to store data from matlab in excel file after each iteration
How to store data from matlab in excel file after each iteration rows=1:4; col=1:2; v = 1 2 1 3 ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to collect information of different cells in a column vector
I have a cell array x{n,j} <3x8 double> <8x9 double> <5x9 double> <2x8 double> <8x9 double> <5x9 ...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to find index of a value in cell array
I have this Cell Array ‘A’ of size 3 by 7 A = { 3 4 [] [] [] [] [] 2 6 -2 2 -2.1 2 2 -5 -5 25 1 [] [] []} I want to...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to find row and column of a value in cell array
I have this Cell Array ‘A’ of size 3 by 7 A = { 3 4 [] [] [] [] [] 2 6 -2 2 -2.1 2 2 -5 -5 25 1 [] [] []} I wan...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find index of cell array
I have a cell array of A = [2] [4] [5] [7] [3] [10] [1] [9] its index is given by cod...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find maximum value of cell array
for a = 1:10 x{a} = xlsread(fileName, a, range); end How to find the maximum value of this cell array or ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find the index of the element of a cell array which has the maximum size
for a = 1:10 x{a} = xlsread(fileName, a, range); end or simply take example of a cell array in this form A = [...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to find maximum value of cell array
got the answer max([A{:}])

etwa 7 Jahre vor | 0

| akzeptiert

Frage


How to remove second digit of first a column
I have one matrix A = [21 2; 34 3; 13 4] I want to remove first digit of first column, so that result shall be A= [1 2;4 3; 3 4]...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to remove second digit of first a column
I have one matrix A = [21 2; 34 3; 13 4] I want to remove first digit of first column, so that result shall be A= [1 2;4 3; 3...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to remove zero sum row from matrix
A=[1 2 3 4 5 6; 0 0 1 1 0 1; 0 0 1 0 1 0] Sum of second and third row if equal to zero, then in new matrix that...

etwa 7 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How to count no of iterations of first digit.
I want to count number of times first digit of first column is repeating. If a = [11 3; 12 4; 13 3; ...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Mehr laden