# Karanvir singh Sohal

**Statistics**

RANK**74,696**

of 242,589

REPUTATION**0**

CONTRIBUTIONS

**14** Questions

**2** Answers

ANSWER ACCEPTANCE **
100.0%
**

VOTES RECEIVED**0**

RANK

of 17,000

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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

answerHow 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

answerQuestion

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

answerQuestion

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

answerQuestion

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

answersQuestion

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

answerQuestion

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

answerQuestion

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

answersQuestion

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

answersQuestion

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

answerQuestion

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

answerCompleting 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

answersQuestion

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

### 1

answerQuestion

Overwriting a diary file

I want to save my output to .txt file. I have used diary Output.txt diary on some code diary off It saves diary file i...

2 years ago | 1 answer | 0