Question

How to find a local minimum around a point you click in a graph?

I have a lot of different graphs, where I want to find the minimal point of where the line is going up towards it's peak. I wo...

2 months ago | 0 answers | 0

Question

Is it possible to merge structs that are not the same size?

Is it possible to merge structs that are not the same size and have different names?

1 year ago | 0 answers | 0

Question

Alternation without for loop

I have 2 vectors that I want to alternate A = [1 2 3 4 5 6 7 8 9 10] B = [0.5 0.2 0.4 0.8 0.9] I would like to have the follo...

1 year ago | 3 answers | 0

Question

Matching closest values to each other

I have two vectors: A = [36.1920000000000;36.8920000000000;37.8420000000000;38.4920000000000;39.3420000000000;39.942000000000...

1 year ago | 2 answers | 0

Question

How to compare two vectors on distance and isolate consecutive segments?

Hi, I want to compare/melt two vectors that represent two data strains that are closely connected to each other: A = [134 ...

1 year ago | 1 answer | 0

Question

How to filter out single/double zero's ?

A = [1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0] I have vector A and I want to smoothen the vector b...

1 year ago | 3 answers | 0

Question

Load in all files of a folder?

Hi, I have a lot of folders containing .csv files. Is there a way to load in all possible files without given a specific comm...

1 year ago | 1 answer | 0

Question

Automatic border detection?

Hi I have this array: I want to automatically border segments of these indices. Is there a way without using a threshold to let...

1 year ago | 0 answers | 0

Question

How to find index with findpeaks?

I have the following line: A = findpeaks([75 45 12 94 60 34 30 51 85 95 85 55 53 53 63 28 53 34 28 38], 'MinPeakHeight', 50) ...

1 year ago | 1 answer | 0

Question

How to find in cell structures?

I have the following cell structure: 1x30 double 1x23 double 1x23 double 1x23 double 1x23 double 1x23 double 1x23 double ...

1 year ago | 1 answer | 0

Question

Isolating segments and comparing two Arrays?

I have the following double (2 arrays) A = [NaN NaN;NaN NaN;NaN NaN;NaN NaN;NaN NaN;NaN NaN;NaN NaN;NaN NaN;NaN NaN;NaN NaN;NaN...

1 year ago | 0 answers | 0

Question

How to do Downward peak detection?

I have the following double A: attached If we plot A (figure attached), we caan see a lot of peaks upside down. If you zoom in,...

1 year ago | 1 answer | 0

Question

Finding the lowest cost for moving from right to left in a matrix

I have the following Matrix F: F = [4.06594492133924 3.91392782934169 3.86257243431977 3.83958417146083 3.87248241841441;3.7260...

1 year ago | 1 answer | 0

Question

Mean value of equal cells

I have a 2 x 9 cell: 29x1 double 22x1 double 22x1 double 22x1 double 22x1 double 22x1 double 22x1 double 24x1 double 34x1 doubl...

1 year ago | 1 answer | 0

Question

How to interpolate the following sample in 200 samples?

As I fail to understand the interp1 function: How to interpolate the following sample in 200 samples? A= [3,41000000000000...

1 year ago | 1 answer | 0

Question

Finding a specific rows?

I have this Matrix: m = [0 0 0 0 0 0 0 0 0 3.410 0 0 0 0 0 0 10.83 11.87 7.240 3.470 1.610 1.610 0 0 20.99 18.23...

1 year ago | 2 answers | 0

Question

Full change of array?

Hi, I have this little loop: count = 0; for i=1:3 for j=1:2 for k=1:3 count(count+1) = count + 1; A = i; ...

1 year ago | 2 answers | 0

Question

Does there exist something in Matlab that skips or returns to a point, when the value of the index does exceed the matrix dimensions?

Does there exist something in Matlab that skips or returns to a point, when the value of the index does exceed the matrix dimens...

1 year ago | 1 answer | 0

Question

How to get rid of gaps in my structure?

Hi, I have the following structure (see below) and I want to get rid of the gaps. How can I get rid of the empty places and ali...

1 year ago | 2 answers | 0

Question

Find Borders and their Indices

I have an array: A = [24.7300000000000 25.0700000000000 27.5200000000000 27.9600000000000 26.2900000000000 16.6300000000000 7...

1 year ago | 3 answers | 0

Question

Find overlap between 2 arrays?

Hi, I have two arrays: A = [806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 82...

1 year ago | 1 answer | 0

Question

Serach whether numbers of different arrays are close to each other

I have 8 arrays of numbers. I want to know whether the numbers of these 8 arrays are close to each other. So for instance Arr...

1 year ago | 1 answer | 0

Question

Cut Out Data for Analysis

Hello, I have these kind of continuous Matrices with data (like 1000's of rows and always 8 columns): 0 0 0 0 0 0 0 0 0 0 0...

1 year ago | 1 answer | 0

Question

nanmean different outcomes?

Hi, I'm doing some analysis on data that has the following time intervals, however when I calculate the mean on two different w...

1 year ago | 1 answer | 0

Question

Copying values between two index number

651 1338 1997 2679 3394 4222 4879 5619 6313 7047 7624 8408 1 1 1 1 1 1 1 1 1 1 1 1 0 1,34 1,28 1,33 1,39 1,61 1,28 1,44 1,35 1...

2 years ago | 2 answers | 0

Question

Checking/Counting values in a given Timewindow

In the following Matrix I have the following '1' states according to their positions: 1 1174 1175 2006 2007 2809 2810 3670 3671...

2 years ago | 2 answers | 0

Question

How to clear out rows of zeros in a matrix?

Hello, I am trying to get rid of all rows of zeros of this Matrix. 162 1 0 0 202 1 0 0 296 1 0 0 447 1...

2 years ago | 2 answers | 0

Question

How to mark periods in my matrices?

Hello, Since I am new in Data Analysis, I need some help marking periods of consecutieve 1's. for i=1:length(PD) for ...

2 years ago | 1 answer | 0

Question

assigning a number to a specific struct (1 to 9) using a for loop

In my research I have several participants, named AT_110001 to AT_110009. I have made structures containing data, however I want...

2 years ago | 1 answer | 0

Question

I want to change a name with a number in it to the number of the participant.

Hello, I want to give a number to a participant of my experiment. The number is in it's name, for example: Participant ='AG_1...

2 years ago | 1 answer | 0