Réponse apportée

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

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

environ 3 ans il y a | 0

| A accepté

Réponse apportée

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

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

environ 3 ans il y a | 0

| A accepté

Réponse apportée

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');

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');

environ 3 ans il y a | 0

| A accepté

Réponse apportée

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.

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.

environ 3 ans il y a | 0

Réponse apportée

How to plot this signal on matlab? Bounty

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

How to plot this signal on matlab? Bounty

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

environ 3 ans il y a | 0

Réponse apportée

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

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

environ 3 ans il y a | 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...

environ 3 ans il y a | 1 réponse | 0

Réponse apportée

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

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

environ 3 ans il y a | 1

| A accepté

Réponse apportée

How to do a band pass filtering in matlab?

Use bandpass. Read this thread.

How to do a band pass filtering in matlab?

Use bandpass. Read this thread.

environ 3 ans il y a | 0

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

environ 3 ans il y a | 2 réponses | 0

Réponse apportée

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

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

environ 3 ans il y a | 0

Réponse apportée

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

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

environ 3 ans il y a | 0

| A accepté

Réponse apportée

How to find elements of a vector falling between minimum and maximum of an other vector without loop.

c = zeros(size(b)); c(b>min(a(:)) & b<max(a(:))) = 1;

How to find elements of a vector falling between minimum and maximum of an other vector without loop.

c = zeros(size(b)); c(b>min(a(:)) & b<max(a(:))) = 1;

environ 3 ans il y a | 1

Réponse apportée

applying delay to real-time process

You can use a timer object. See details here and here.

applying delay to real-time process

You can use a timer object. See details here and here.

environ 3 ans il y a | 0

Réponse apportée

How to read time of (YY:DOY:SSSSS) format ?

Try this: readtable(filename, 'Format', '%{uu:DDD:SSSS}D %f')

How to read time of (YY:DOY:SSSSS) format ?

Try this: readtable(filename, 'Format', '%{uu:DDD:SSSS}D %f')

environ 3 ans il y a | 0

| A accepté

Réponse apportée

Add percentage symbol (%) on contour lines (2019a)

Use '%%' to write the '%' symbol: fprintf('%%\n');

Add percentage symbol (%) on contour lines (2019a)

Use '%%' to write the '%' symbol: fprintf('%%\n');

environ 3 ans il y a | 0

| A accepté

Réponse apportée

How to interpolate geometry along Z axis?

You can use Matlab scatteredInterpolant or griddata.

How to interpolate geometry along Z axis?

You can use Matlab scatteredInterpolant or griddata.

environ 3 ans il y a | 0

Réponse apportée

How to apply if else statement by reading values from a Table file on each value and save output?

% generate values randomly between 0 and 500 for an example a = 0; b = 500; Turbidity = (b-a).*rand(1000,1) + a; TurbidityNE...

How to apply if else statement by reading values from a Table file on each value and save output?

% generate values randomly between 0 and 500 for an example a = 0; b = 500; Turbidity = (b-a).*rand(1000,1) + a; TurbidityNE...

environ 3 ans il y a | 0

| A accepté

Réponse apportée

Plotting a equally distributed quantized signal

% sinusoids in the signal f1 = 369; f2 = 919; f3 = 183; % max and min spectral components fmax = max([f1, f2, f3]); fmin...

Plotting a equally distributed quantized signal

% sinusoids in the signal f1 = 369; f2 = 919; f3 = 183; % max and min spectral components fmax = max([f1, f2, f3]); fmin...

environ 3 ans il y a | 0

| A accepté

Réponse apportée

Finding the nearest neighboors of a point on a 2D plot

First of all, you have to define your distance. The Euclidean distance, for example? Step1: Create nearest neighbor searcher ob...

Finding the nearest neighboors of a point on a 2D plot

First of all, you have to define your distance. The Euclidean distance, for example? Step1: Create nearest neighbor searcher ob...

environ 3 ans il y a | 0

| A accepté

Réponse apportée

How to make a loop to average the values?

If you want to use a for loop, you can do this for j=14:22 eval(sprintf('BV_%g_L_mean = mean(BV_%g_L,2);', j, j)); ev...

How to make a loop to average the values?

If you want to use a for loop, you can do this for j=14:22 eval(sprintf('BV_%g_L_mean = mean(BV_%g_L,2);', j, j)); ev...

environ 3 ans il y a | 0

| A accepté

Réponse apportée

3 matrix product without dimension error

You can multiply the matrices directly without a loop. % random matrices x = randn(2, 72); y = randn(72, 72); % multiplicati...

3 matrix product without dimension error

You can multiply the matrices directly without a loop. % random matrices x = randn(2, 72); y = randn(72, 72); % multiplicati...

environ 3 ans il y a | 0

Réponse apportée

I want to plot a graph for a function which varies according to the range of the variable (Like a piecewise function)

That is because your first condition is the most general (or inclusive). The second condition is satisfied when the tested value...

I want to plot a graph for a function which varies according to the range of the variable (Like a piecewise function)

That is because your first condition is the most general (or inclusive). The second condition is satisfied when the tested value...

environ 3 ans il y a | 0

| A accepté

Réponse apportée

If all points are equal then

% generate 3 matrices for a demo A1 = randn(72,2); A2 = randn(5,2); A3 = randn(3, 2); % generate a structure s = {A1, A2,...

If all points are equal then

% generate 3 matrices for a demo A1 = randn(72,2); A2 = randn(5,2); A3 = randn(3, 2); % generate a structure s = {A1, A2,...

environ 3 ans il y a | 0

Réponse apportée

Generates a sawtooth wave with amplitude of 1 unit, a frequency of 2 Hz or (4pi radians per second) and a phase shift of pi/4 radian.

% amplitude amp = 1; % fundamental frequency f = 2; % time span of 10 periods T = 10/f; % phase shift theta = pi/4; % sa...

Generates a sawtooth wave with amplitude of 1 unit, a frequency of 2 Hz or (4pi radians per second) and a phase shift of pi/4 radian.

% amplitude amp = 1; % fundamental frequency f = 2; % time span of 10 periods T = 10/f; % phase shift theta = pi/4; % sa...

environ 3 ans il y a | 0

| A accepté

Réponse apportée

Selection by circular indexing

function y = circularSelect(v, a, b) N = length(v); idx = a:b+N*(b<a); idx(idx>N) = idx(idx>N)-N; y = v(idx); end

Selection by circular indexing

function y = circularSelect(v, a, b) N = length(v); idx = a:b+N*(b<a); idx(idx>N) = idx(idx>N)-N; y = v(idx); end

environ 3 ans il y a | 0

| A accepté

Réponse apportée

how to plot group delay with respect to omega_1 and omega_2 for 2-D dimensional digital filter

Use grpdelay. A built-in Matlab function.

how to plot group delay with respect to omega_1 and omega_2 for 2-D dimensional digital filter

Use grpdelay. A built-in Matlab function.

environ 3 ans il y a | 0

Réponse apportée

how to interpolate for increasing - decreasing type of data set

The function interp2 performs interpolation for 2D gridded data. It has the form Vq = interp2(X,Y,V,Xq,Yq), where X and Y contai...

how to interpolate for increasing - decreasing type of data set

The function interp2 performs interpolation for 2D gridded data. It has the form Vq = interp2(X,Y,V,Xq,Yq), where X and Y contai...

environ 3 ans il y a | 0

Réponse apportée

What is the result of the following command? x = 5 : -2 : 1

Your command has the form: x = x1:stp:x2, where x1 is the starting value, x2 is the end value, and stp is the step. Applying tha...

What is the result of the following command? x = 5 : -2 : 1

Your command has the form: x = x1:stp:x2, where x1 is the starting value, x2 is the end value, and stp is the step. Applying tha...

environ 3 ans il y a | 0

Réponse apportée

how to detect circles in the provided .bmp image?

Read Detect and Measure Circular Objects in an Image

how to detect circles in the provided .bmp image?

Read Detect and Measure Circular Objects in an Image

environ 3 ans il y a | 0