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

ongeveer 3 jaar 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...

meer dan 3 jaar 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...

meer dan 3 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar 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 ...

bijna 4 jaar 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...

bijna 4 jaar 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...

bijna 4 jaar 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 ...

ongeveer 4 jaar 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...

ongeveer 4 jaar 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'...

ongeveer 4 jaar 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 ...

ongeveer 4 jaar ago | 2 answers | 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...

meer dan 4 jaar ago | 1 answer | 0