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...

11 månader 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...

11 månader 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...

11 månader 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...

11 månader 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 ...

12 månader ago | 0 answers | 0

Question

How to solve error of index exceeds number of array elements?

Hi, I am using MATLAB R2020a on MacOS. I am trying to find the exponentially weighted moving mean of my signal 'cycle_periods' u...

12 månader ago | 1 answer | 0

Question

How to calculate an exponentially weighted moving average on a conditional basis?

Hi, I am using MATLAB R2020a on a MacOS. I have a signal 'cycle_periods' consisting of the cycle periods of an ECG signal on whi...

12 månader ago | 1 answer | 0

Question

How to remove outliers from exponentially weighted moving mean in real-time?

I am using MATLAB R2020a on a MacOS. I am calculating an exponentially weighted moving mean using the dsp.MovingAverage functio...

12 månader ago | 1 answer | 0

Question

How to remove outliers from a vector when calculating a moving average?

I am using MATLAB R2020a on a MacOS. I am calculating an exponentially weighted moving mean using the ds...

12 månader ago | 1 answer | 0

Question

How to calculate an exponentially weighted moving mean and specify the time constant over which weights are applied?

Hi, I am using MATLAB R2020a with MacOS. I am trying to find the exponentially weighted moving mean of the cycle period of an EC...

12 månader ago | 1 answer | 0

Question

How do I calculate an exponentially weighted moving mean?

Hi, I am using MATLAB R2020a with MacOS. I am trying to find the exponentially weighted moving mean of the cycle period of an EC...

12 månader ago | 1 answer | 0

Question

How to find co-ordinates in a signal trace when each co-ordinate increments by a changing amount

Hi, I am using MATLAN R2020a on a MacOS. I am trying to find the x(time), y(time)) and z(time) co-ordinates of an ECG-signal tra...

12 månader ago | 0 answers | 0

Question

How to make tau of attractor vary with cycle period in ECG trace

Hi, I am currently using MATLAB 2020Ra to construct an attractor for phase-space analysis of ECG traces. This involves getting 3...

ungefär ett år ago | 0 answers | 0

Question

How to specify input arguments of a structure in a 'for' loop separate to field argument

Hi, I am using MATLAB R2020a on a MacBook Air. I am trying to record the results of an experiment such that the results are in...

ungefär ett år ago | 2 answers | 0

Question

How to present a stimulus on the screen depending on the user keyboard response

I am using Psychtoolbox on MATLAB R2020a, on Windows 10. I am trying to present a certain stimulus depending on the user’s keybo...

ungefär ett år ago | 0 answers | 0

Question

How to convert sequence of numbers into text and display on screen

I am using MATLAB R2020a Psychtoolbox on Mac OS. I am trying to display sequences of numbers generated from a random Gaussian di...

ungefär ett år ago | 0 answers | 0

Question

How to display multiple rects simultaneously

I am using MATLAB R2020a Psychtoolbox on Mac OS. I am trying to display multiple rects using the following code but can't seem t...

ungefär ett år ago | 0 answers | 0

Question

How to write function to generate gaussian distribution of normal numbers with specified mean, variance and number of values?

I am using MATLAB R2020a Psychtoolbox on Mac OS. I found the following code here to generate a gaussian distribution of random n...

ungefär ett år ago | 1 answer | 0

Question

How do I make all the code execute in MATLAB using Psychtoolbox?

I am using MATLAB 2020 Psychtoolbox on Mac OS and everytime I run this code, they screen turns grey followed by an error sound,...

ungefär ett år ago | 0 answers | 0