Community Profile

# Karanvir singh Sohal

Last seen: 5 months ago Active since 2019

#### Content Feed

View by

Question

Storing value outside the loop using reshape function
Hello everyone! I was working on some code and I can't silly I'm doing. Here I have attached my problem in short format. I kno...

6 months ago | 1 answer | 0

### 1

How to align names with the numbers in a matrix?
So, finally I found what I was looking for Name={'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' }; Data=[ 1 2 3 4 5 6 7 8 ...

6 months ago | 0

| accepted

Question

Assigning columns of matrix to strings.
Hello everyone I have following matrix which have nums and I have stored strings in another. Name={'a' 'b' 'c' 'd' 'e' 'f' 'g'...

6 months ago | 1 answer | 0

### 1

Question

Eliminating columns from the matrix
Hello! I have matrix containing string data and nums. a=[0 12 13;0 5 4;0 9 6;0 8 9]' b={'a'; 'b'; 'c'} fprintf('%5s %5s %5s...

6 months ago | 1 answer | 0

### 1

Question

String split from the line .
Hello! I have strings stored in "myline" variable. myline = ,A,B,C,D,E,F,G,H,I,J,K I want to split the string at(,) and also...

6 months ago | 1 answer | 0

### 1

Question

How to align names with the numbers in a matrix?
Hello! I have to put heading row over the data matrix so I used the following code: a=[12 13 14]; b={'a'; 'b'; 'c';}; c=[cha...

6 months ago | 2 answers | 0

### 2

Question

ranking the data in matrix and arrange them as per rank.
Hello! I have a matrix D and E D=[1 2 3; 7 8 9; 4 5 6; 3 0 5]; E=[D sum(D')' ranks(sum(D')')] output of E is E = [ ...

6 months ago | 1 answer | 0

### 1

Question

Multiplication of elements of matrix without using for loop
Hello everyone! I have 2 matrixs A and B. A=[1.00 0.50 0.3333; 0.25 0.20 0.1666; 0.14 0.12 0.1111] B=[1 2 3] I wan...

6 months ago | 1 answer | 0

### 1

Question

correction in order of elements in matrix obtained from reshape array
Hello everyone! below is the code for calculation of C A=[4 4 4; 8 8 8] B=[16 12 8] [mA,nA] = size(A); [mB,nB] = size(B); ...

6 months ago | 2 answers | 0

### 2

Question

storing matrix elements in a single variable as string
Hello! I want to join the multiple int from the matrix and save them as a string. Let us say I have a matrix A. A = [3 25 100 ...

6 months ago | 2 answers | 0

### 2

Question

Eliminating the rows from a matrix
Hello, I have a matrix of any size (say m*n), A=[22 23 44 13 12 ... 4 33 21 33 42 42 ... 3 21 33 12 43 13 ... 1 ...

6 months ago | 1 answer | 0

### 1

Question

How to eliminate column of the matrix?
Hello everyone! I have generated some matrix of size say mxn. I want to eliminate the columns which have all values equal to "0...

6 months ago | 1 answer | 0

### 1

Completing elements of a matrix
Well I got what i was trying to do :) Thanks @Jan for your time and help L=4 X_Range=[L*1000/16 L*1000/10]; Shut= [152.4; 2...

7 months ago | 0

| accepted

Question

Completing elements of a matrix
I have a matrix a from a I have generated a new matrix b which have 2 new elements for 1 element of a a = [2;3] [m,n]=size(a)...

7 months ago | 2 answers | 0

### 2

Question

Matching elements from two different matrixes.
I have one matrix with fixed elements say Shut I want to generete another matrix which contains the elements from Shut matrix h...

7 months ago | 1 answer | 0