**Statistics**

RANK**693**

of 239,124

REPUTATION**78**

CONTRIBUTIONS

**5** Questions

**44** Answers

ANSWER ACCEPTANCE **
100.0%
**

VOTES RECEIVED**2**

RANK**14,663** of 16,799

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to obtain FFT of nonuniformly spaced data?

Interpolate the signal to have a uniformly samped samples, then run the usual fft algorithm. clear, clc opts = spreadsheetIm...

21 hours ago | 0

Legend option and numbering in boxes

You can define the number of columns in the legend object using the property NumColumns. Use the following: legend({'2500 Datas...

23 hours ago | 0

why this line gives error?

It seems that the findpeaks function could not find a peak, so it returned an empty vector. Check your signal, or specify some p...

23 hours ago | 0

Group overlay bar chars using cell with three 10x5 double arrays

A very simple solution is to plot the data directly but after introducing matrices of zeros so that the bars look like they are ...

1 day ago | 0

How to compute cross sectional area and volume from a stack of segmented images?

Binarize the image, then use region properties to compute the area (number of pixels). Once you know the number of pixels, you c...

2 days ago | 0

How to set subplots same size

Because you are requesting to use the same length for the data units along each axis when you specified axis equal Matlab will...

2 days ago | 0

| accepted

Import STL file into matlab and use a transform object as a parent to move it in a 3D plot

You can use this contribution to return the patch structs from a given stl file.

2 days ago | 0

How can I plot some fft data in a different way?

The first column in the txt files you provided is a DateTime vector, so again, I am not able to understand how ϕ is defined. I w...

2 days ago | 0

| accepted

Posterior probability math to code

First of all, you have to pay attention to the fact that there is no equality in the relation you presented, but rather a propor...

3 days ago | 0

| accepted

comparing a cell with the before it, Percentage of change

If you are defining the rate of change as: the problem becomes easy. Assuming that you have vectors, just use delta = diff(x...

3 days ago | 0

How to overcome the error in the listener function while getting the final positions of an interactive ROI?

If you just need to get the position of the ROI, then you do not need necessary to create a listener. Just access the feature Ve...

6 days ago | 0

I want to draw two figure in same figure window for comparison purpose.

See the example below if you want to draw data on the same axes: % first signal t = 0:127; x = cos(2*pi*0.01*t); % create ...

6 days ago | 0

Could anyone help me how to find the difference between the two columns in 10x2 double

Read about Matlab cell arrays and how to access their data here. for your question, do the following: A{1,1}(:,1) - A{1,1}(:...

6 days ago | 0

Approximate the first zero crossing of an exponentially decaying waveform.

Looking at the figures that your code produces, you can see clearly that the first zero-crossing is not around 1.6794 as your te...

7 days ago | 0

How do I perform erosion and dilation on point cloud

Transform the point cloud into an image, then you can use Matlab image processing tools and functions. A quick search on the Fi...

7 days ago | 0

| accepted

How to plot a grid with a for loop.

N = 64; a = 7; b = 9; x = a:a+N-1; y = b:3:b+3*N-1; figure, plot(x, y, 'o'), grid minor xlabel('X'), ylabel('Y');

7 days ago | 0

| accepted

Detecting multiple tumors from an mri image, given an image with more than one tumor, how do I detect all of them at the same time?

Detect the tumor, remove it from the image, run the method again on the new image until there are no more tumors.

10 days ago | 0

How to plot this signal on matlab? Bounty

T = 4; % period F = 1/4; % fundamental frequency Fs = 1000; % sampling frequency ...

10 days ago | 0

Plotting different chart types in the same figure?

There are several ways to obtain that. One of them is through creating panels, each with its own axes. You can plot on the axes ...

11 days ago | 0

Question

How to plot box plots of data of different sizes on the same figure?

Hi everyone! I have vectors of variable sizes in a cell array. I need to plot the box plot of each vector on the same figure. T...

11 days ago | 1 answer | 0

### 1

answerHow I can stop this code with the bukle 'WHILE'?

When the condition RK1>RK2 becomes satisfied, the code breaks the for loop and returns the while loop, which is always satisfied...

12 days ago | 1

| accepted

Solved

Combine Data With Gaps

Combine data sets a and b where the datasets have "gaps" or unique points. Example: Input a = [1,0; 2,1; ...

13 days ago

Solved

Split array into pieces according to corresponding array

An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n>=m). A second...

13 days ago

Solved

Neither minima nor maxima

Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

14 days ago

Solved

How close to a hole

Suppose you have a description of good places (ones) and bad places (zeros). You want to know your distance from a bad place (in...

14 days ago

Solved

Find the same and successive values in a vector

Find the same and successive values in a vector. For example: Input x = [ 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 ] Start and end...

14 days ago

Question

How to plot stacked variables with common x-axis?

Hello everyone, I am trying to produce a figure similar to the one attached. As you can see, for each Y, there is a function of...

17 days ago | 2 answers | 0

### 2

answersIs expm accurate to compute transition probabilities for a continuous-time Markov chain?

expm(sig) computes the matrix exponential of sig according to: [V,D] = eig(sig) expm(sig) = V*diag(exp(diag(D)))/V For your e...

17 days ago | 0

code runs properly but the variables in workspace are not shown, How to resolve this issue?

find_PD_MF is a Matlab function. You declared your function without outputs. Therefore, Matlab will not return any output of you...

17 days ago | 0

| accepted