Community Profile

# Per Vatsvag

Last seen: 7 dagen ago Active since 2019

#### Content Feed

View by

Question

Several line plot (2D) with colormap (including labelling)
Dear All Community Members, I have about 300 lines that I want to be colored depending on a third value in one plot. I have c...

28 dagen ago | 1 answer | 0

### 1

Question

Identify duplicates in a matrix and keep the one with minimum value
Dear All Community members, I have a matrix, examplified as "A" below, where I need to identify the duplicates in the first and...

5 maanden ago | 2 answers | 0

### 2

Question

Find max values within a defined range for each column and rows of a matrix
Hi! I have a 20x305471 matrix, representing 20 variables in a time series sampled at 28.28 Hz. I have also have a time vector (...

ongeveer een jaar ago | 1 answer | 0

### 1

Question

Logical Indexing instead of loops in 3D-Matrices
Dear All Community members, I have two 3D matrices, AB1/AB2=1250x441x451 and two arrays, C=1x5 and D=1x1250. Instead of runnin...

meer dan 2 jaar ago | 2 answers | 0

### 2

Question

Vectorize a code involving multiple loops commands
Dear All Community members, I have created a code involving three loops and a while command. I want to vectorize the code becau...

meer dan 2 jaar ago | 1 answer | 0

### 1

Question

create multiple submatrices from a large matrix
Dear All communtity members, I want to write a code that creates multiple submatrices from a large matrix either through a loop...

meer dan 2 jaar ago | 2 answers | 0

### 2

Question

How to reduce computation time in a code with multiple nested loops and if statements
Dear all Community members, I have written a code that involves multiple nested loops and several if statements which require ...

meer dan 2 jaar ago | 1 answer | 0

### 1

Question

Replace numbers in a matrix depending on if statements from arrays
Dear all Community members, I have a 5x5 matrix and two arrays (1x5 and 5x1) that contains only numerical values. I want to re...

meer dan 2 jaar ago | 3 answers | 0

### 3

Question

Replace numbers in a matrix depending on if statement
Dear all Community members, I have a 5x5 matrix that contains only numerical values. I want to remove values below a given thr...

meer dan 2 jaar ago | 1 answer | 0

### 1

Question

Extract maximum values from three different vectors when their associated location vectors crosses
Dear all, I have six vectors, three with peak values and three vectors with associated location values based on three peak anal...

meer dan 3 jaar ago | 1 answer | 0

### 1

Extract maximum values from two different vectors when their associated location vectors crosses
If I wish to extend this problem to three variables (/sensors), E.g.: loc1=[10.4 15.8 29.2 32.1 35.9]; loc2=[10.1 15.2 35.6];...

meer dan 3 jaar ago | 0

Question

Extract maximum values from two different vectors when their associated location vectors crosses
Dear all, I have four vectors, two with peak values and two vectors with associated location values based on two peak analysis....

meer dan 3 jaar ago | 3 answers | 0