Community Profile

photo

Ulrik Nash


University of Sothern Denmark

Active since 2011

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


How do I construct a vector from two different integers drawn with equal probability?
What is the most efficient way to construct a vector of length N from two different integers drawn with equal probability? For e...

8 years ago | 0 answers | 0

0

answers

Question


integer operands are required for colon operator when used as index
Why do I get the warning "integer operands are required for colon operator when used as index" in the final line is this code: ...

12 years ago | 0 answers | 0

0

answers

Question


Counting proportion of all rows taken by each unique row
Hi Everyone, Suppose I have a matrix A, and I wish to determine the number of unique rows this matrix has. Then I could form ...

12 years ago | 2 answers | 0

2

answers

Question


Mean of highest n numbers for each row in a matrix
Hi Everyone, Suppose I have a matrix A, which has r rows and c columns. For each of the rows A, I wish to find the mean of...

12 years ago | 1 answer | 0

1

answer

Question


Setting value to zero at random
Hi Everyone, Suppose I have two vectors A = [0 2 2 0 1] and B = [1 3 4 2 1] and suppose I apply following code: val = m...

12 years ago | 1 answer | 0

1

answer

Question


Counting number of zeros in column or row, without looping
Hi Everyone, If I have a matrix A, is there a way to create a 1,c vector containing the number of non-zeros in each columns, ...

12 years ago | 1 answer | 0

1

answer

Question


A script to create a single matrix from matrix in different matlab files
Hi Everyone, Suppose I have many different Matlab files located in a folder. Let's say these files are called FileName_1, Fil...

12 years ago | 2 answers | 0

2

answers

Question


Saving matlab file with identifier
Hi Everyone, Suppose I have a simulation, that I run for different parameter settings. After each run, I wish to save my Matl...

12 years ago | 1 answer | 0

1

answer

Question


Count number of times values in vector A are greater than corresponding values in vector B
Hi Everyone, Suppose I have two one-column vectors of equal column height, A and B. For example A = [1;2;3] and ...

13 years ago | 1 answer | 0

1

answer

Question


Removing a specific number from vector
Hi Everyone, Suppose I have the following A = 4 and Z = [1 9 2 3 4 5] how do I remove the value A from Z, to get ...

13 years ago | 4 answers | 0

4

answers

Question


Finding maximum value, discounting a certain matrix place.
Hi Everyone, Suppose I have a 1,m matrix, which I call sweep. Suppose also, that I have identified I to be a relevant plac...

13 years ago | 2 answers | 0

2

answers

Question


Multiplying values in one column with values in another, depending on criteria
Hi Everyone, Suppose I have the following matrix: A = 1.0__0.7__4.4__0.9__50.9 3.0__0.8__5.2__1.0__28.7 6.0__0.5__3.2__0.7...

13 years ago | 1 answer | 0

1

answer

Question


Place(s) of greatest deviation
Hi Everyone, Suppose I have a vector Y: Y = [0 0 0 0.5 0.5] and a vector X X = [0 0 0 1 1] Now I wish to find the...

13 years ago | 1 answer | 0

1

answer