Question

"Subscript indices must either be real positive integers or logicals" error while using trapz function

Hello, I am using following code to calculate area under the peak. D = amplitude(:); l = 59; ...

1 year ago | 2 answers | 0

Question

How to plot multiple histograms, each with fitting in a single figure?

I have 5 datasets. I have to plot the histogram for each of them in a single figure. I want to fit each histogram individually u...

1 year ago | 1 answer | 0

Question

How to fit hyperbola to scatter plot?

I have attached data I want to fit with hyperbola. As you can see in attached picture, the fit is appearing behind the scattered...

2 years ago | 1 answer | 0

Question

How to fit a curve using "power" fitting or "custom fitting"?

I have data which I need to fit using following equation: y= f(x)= a*x^b+c. Code: r=scatter(npp7,lk_2k1); r.Marker...

2 years ago | 1 answer | 0

Question

How to find probability density for two data sets plotted on same histogram?

I want to plot two data sets on one histogram. Also, I want to show probability density at y-axis. I am using this code, BinE...

2 years ago | 1 answer | 0

Question

How can we fit hyperbola to data?

Hi, I have x and y coordinates for my data points. The data is fitted well with exponential fitting. However, I have to fit a hy...

2 years ago | 1 answer | 0

Question

How to integrate area under peak?

For my events, I have data points for y-axis. As a sample, I have attached a text file containing datapoints for one of my event...

2 years ago | 2 answers | 0

Question

How can we define equally- ranged bins in histogram?

Hi, Thank you for responding my previous questions. I have a dataset containing values between 0 to 1. I want to plot a histog...

2 years ago | 1 answer | 0

Question

How can we calculate probability density of a histogram?

Hello, I have a dataset containing hundreds of data points representing duration of events. I have plotted a histogram for this ...

2 years ago | 3 answers | 0

Question

What does MinThreshold parameter explain in FindChangePts function (in matlab2017R)?

What does MinThreshold parameter explain in FindChangePts function (in matlab2017R)? Can someone explain in simple language? Als...

2 years ago | 1 answer | 1

Question

How to plot 2D colormap or heatmap?

I have 2 matrices, x and y each containing 100-200 datapoints. I want to plot heatmap (or 2D colormap) to show density. For e...

2 years ago | 2 answers | 0

Question

How to calculate area under peak?

I have many multiple peak events/signals as shown in attached picture. I want to calculate area under each individual peaks (in ...

2 years ago | 1 answer | 0

Question

How can I find elements in sequence in an array?

I have an array of numbers. I want to find set of numbers for which difference of two consecutive numbers is 1. For example, I h...

2 years ago | 1 answer | 0

Question

Can we extract amplitude of levels in a signal using "findchangepts" function?

Hi, I want to find points of abrupt changes in my data signal to obtain various levels in the signal. I am using 'findchangepts'...

2 years ago | 1 answer | 0

Question

Substitute of CUSUM algorithm for point-change detection and curve fitting..

Hi, I am using CUSUM (cumulative sum) algorithm to detect points of sudden changes in my neural signal data. This algorithm is ...

2 years ago | 1 answer | 0

Question

Error in abf2load (line 14) - cmd = sprintf('Abf2Tmp %s',fn); % Not enough input arguments %

I am trying to load an 'abf2' file using following code. But I am getting an error "not enough input arguments" in line 'cmd = s...

2 years ago | 1 answer | 0