Question

How do I find the indices of NaN values in a cell array?

Hi, I have a 3390 x 1 cell array containing 4 x 30 doubles. Some of these doubles contain NaN values which I would like to repla...

8 hours ago | 2 answers | 0

Question

How do I weight input data when training a neural network?

Hi, I have trained an LSTM neural network to classify ECG signals using data from several patients. I would now like to use this...

1 day ago | 0 answers | 0

Question

How do I convert a double into a cell array?

Hi, I am attempting to convert a double called 'instantaneous_frequency_v' into a cell array. 'instantaneous_frequency_v' is cur...

1 day ago | 1 answer | 0

Question

I keep getting NaN values when computing the mean and standard deviation of an array

Hi, I am attempting to calculate the mean of all the rows in a cell array called 'XTrain2_all' comprised of 4x30 doubles, howeve...

10 days ago | 1 answer | 0

Question

How do I implement feature selection for training a neural network on time-dependent data?

Hi, I am trying to train a LSTM neural network to classify time-dependent 2-dimensional input signals derived from ECG's. I have...

13 days ago | 0 answers | 0

Question

How do I replace elements in a vector with other vectors?

Hi, I am currently trying to replace the elements in a vector called 'seq1' with other vectors. seq1 has 12 numbers ranging from...

18 days ago | 2 answers | 0

Question

How do I implement feature extraction using time-frequency analysis

Hi, I am trying to train a LSTM neural network to classify time-dependent 2-dimensional input signals derived from ECG's. I have...

18 days ago | 0 answers | 0

Question

How do I concatenate 2 cell arrays?

Hi, I am attempting to concatenate 2 cell arrays such that the dimensions of the concatenated cell array are 2215 x 1, with each...

20 days ago | 1 answer | 0

Question

How to alter the dimensions of a cell array?

Hi, I am trying to alter the dimensions of my array so it meets the requirements for training of a neural network. At the moment...

20 days ago | 1 answer | 0

Question

How to create a categorical variable with a specified number of characters?

Hi, I am trying to create a vector called 'labels' which has 1883 'N's followed by 332 'A's. The code I am currently using just ...

21 days ago | 1 answer | 0

Question

How do I add values to an array on a conditional basis?

Hi, I am trying to add values to a pre-allocated array based on whether the row number belongs to a set of values. In this examp...

22 days ago | 1 answer | 0

Question

How do I concatenate multiple arrays?

Hi, I am trying to concatenate multiple arrays with different numbers of rows but the same number of columns. I would like to cr...

22 days ago | 1 answer | 0

Question

Is there any of training a neural network to recognise abnormal images in a sequence?

Hi, I am using MATLAB R2020a on a MacOS. I am currently analysing ECG signals to identify abnormal cycles in real-time on a cycl...

28 days ago | 0 answers | 0

Question

Is there any way to train a neural network to recognise abnormal images?

Hi, I am using MATLAB R2020a on a MacOS. I am analysing ECG signals in real-time on a cycle-by-cycle basis by plotting the co-or...

28 days ago | 1 answer | 0

Question

How do I train a deep learning algorithm to find the template for an image and then compare other images to this template?

Hi, I am using MATLAB R2020a on a MacOS. I am currently trying to detect abnormal phase-space trajectories in the 2D space on a ...

28 days ago | 1 answer | 0

Question

Is there any way of using machine learning for successive image comparison to a template?

Hi, I am using MATLAB R2020a on a MacOS. I am currently trying to detect abnormal phase-space trajectories in the 2D space on a ...

1 month ago | 2 answers | 0

Question

How do I translate a 2D shape to its centroid?

Hi, I am using MATLAB R2020a on a MacOS. I am attempting to translate the blue shape shown here about its centroid onto the oran...

1 month ago | 1 answer | 0

Question

How do I interpolate values within a while loop?

Hi, I am using MATLAB R2020a on a MacOS. I am trying to remove outliers in real-time from a vector called 'cycle_periods' in a w...

1 month ago | 1 answer | 0

Question

How do I make an if statement based on whether an index is part of a vector of numbers?

Hi, I am using MATLAB R2020a on a MacOS. I am trying to write an 'if' statement such that a command is executed if the index of ...

2 months ago | 1 answer | 0

Question

How do I linearly interpolate past missing values using future values in a while loop?

I am using MATLAB R2020a on a MacOS. I am trying to remove outlier values in a while loop. This involves calculating an exponen...

2 months ago | 0 answers | 0

Question

How do I extrapolate values in a while loop?

Hi, I am using MATLAB R2020a on a MacOS. I am trying to remove outlier values in a while loop. This involves calculating an expo...

2 months ago | 0 answers | 0

Question

How do I produce graphs from 'for' loop?

Hi, I am using MATLAB R2020a on a MacOS. I have specified the production of a graph within a 'for' loop but when I run the code,...

2 months ago | 1 answer | 0

Question

Why is my code running so slowly in the while loop?

Hi, I am using MATLAB R2020a on a MacOS. I am currently trying to calculate the exponentially weighted moving mean by applying a...

2 months ago | 1 answer | 0

Question

How do I resample to have a uniform number of samples for each cycle of my signal?

I am using MATLAB R2020a on a MacOS. I have an ECG signal with a sampling frequency of 1kHz. From cycle to cycle, there are a di...

2 months ago | 1 answer | 0

Question

How to replace past vector values using future values in a while loop?

Hi, I am using MATLAB R2020a. I am trying to identify outliers from a vector in real-time based on certain conditions and then r...

2 months ago | 0 answers | 0

Question

How to compare future vector value to a past one in a while loop

Hi, I am using MATLAB R2020a on a MacOS. I have while loop whereby the current input sample is compared to the previously 'accep...

2 months ago | 1 answer | 0

Question

How to generate a colourmap for a 2D denisty map?

Hi, I am using MATLAB R2020a with a MacOS. I am currently trying to generate a colourmap to represent the density of points on t...

2 months ago | 1 answer | 0

Question

How to change the brightness of a stimulus?

Hi, I am using Psychtoolbox with MATLAB R2020a on a MacOS. I am currently coding a task that involves a change in brightness of...

2 months ago | 0 answers | 0

Question

How to remove whole cycles from an ECG trace?

Hi, I am using MATLAB R2020a on a MacOS. I am attempting to remove the time values and corresponding voltage amplitudes of cycle...

2 months ago | 0 answers | 0

Question

How to remove unwanted values from a vector on a real-time basis?

Hi, I am using MATLAB R2020a on a MacOS. I am trying to calculate an exponentially weighted moving mean ...

2 months ago | 0 answers | 0