Community Profile

photo

Hyowon Lee


Active since 2015

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Replace values to 0 in specific ranges.
A=[1 0 0 0 2 3 0 0 0 4 ...100 40 20 1 0 0 0 2 3 4 0 5 .... 100 90 80 40 20 1 2 0 3 0 0 4... 100]; B=[1 0 0 0 2 3 0 0 0 4 .....

8 years ago | 0 answers | 0

0

answers

Question


Counting column number until a specific value in a different matrix.
A=[ 0 0 0 0 1 1.1 1.2 2 2.5 3 3.3 4 4.1 4.2 4.3 5 .... 100 0 1 2 2.2 2.3 3 4.5 .... 100 50 23 1 0 0 0...] B=[ 1 2 3 4 5 6 ...

8 years ago | 0 answers | 0

0

answers

Question


In a specific range, finding the first value over a specific value and maximum value
I have a data set more. [A] A= [1 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0]; By using A matrix, two 1s ...

8 years ago | 2 answers | 0

2

answers

Question


Problem after interp1.
A matrix has a lot of 151 and 1 values. A = [ 1 1.5 2 2.33 2.67 3 ....... 150.75 151 101 51 1 1.5 2 2.33 2.67 3 3.33 ......]...

8 years ago | 2 answers | 0

2

answers

Question


How to use linear interpolation on irregular intervals and reset value
[ 0 0 0 0 1 0 0 2 0 0 3 0 0 0 1 0 2 0 3 0 0 0 0 1 ] result=> [ 0 0.25 0.5 0.75 1...

8 years ago | 1 answer | 0

1

answer

Question


Count specific values in a matrix and Find row and column number of the first value among consecutive same values.
1) Counting the number of the specific values. such as [1 1 1 1 1 1 2 2 2 2 3 3 3 3 3 4 4 4 4 4 4 4 4 4 5 5 5 6 6 6 6 6 ...

8 years ago | 1 answer | 0

1

answer

Question


How to use cumsum + interp1q on reset values.
[ 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 ] cumsum with reset '3' value and delete repeated v...

8 years ago | 1 answer | 0

1

answer

Question


How to fill values between two values.
A = [1 0 0 0 2 0 3 0 0 0 0 4 0 5 ....] B = [1 1.25 1.5 1.75 2 2.5 3 3.2 3.4 3.6 ...

8 years ago | 2 answers | 0

2

answers

Question


Cumsum function + range of values after cumsum.
A 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 ..... 0 0 1 0 0 0 0 1 0 0 1 0 1 .... cumsum 0 0 0 1 1 1 2 2 2 2 2 3 3...

8 years ago | 2 answers | 0

2

answers

Question


Finding a value and call the cell number or counting value on the same length of vectors.
I'd like to call the row number when B(i,1)==1; For i=1:n; if B(i,1)==1; (strfind is only for 1 row.) how to call th...

8 years ago | 1 answer | 0

1

answer

Question


How to use for loop and ifelse condition with Nx1 matrix.
A:N x 1 matrix. n = size(A,1) for i = 1:n % increment 1 if A(i,1) = 5 % Error: The expr...

8 years ago | 1 answer | 0

1

answer