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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

Respondida
How to plot this signal on matlab? Bounty
T = 4; % period F = 1/4; % fundamental frequency Fs = 1000; % sampling frequency ...

casi 3 años hace | 0

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

casi 3 años hace | 0

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

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

casi 3 años hace | 1

| aceptada

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Resuelto


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

casi 3 años hace

Respondida
How to do a band pass filtering in matlab?
Use bandpass. Read this thread.

casi 3 años hace | 0

Pregunta


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

casi 3 años hace | 2 respuestas | 0

2

respuestas

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

Respondida
applying delay to real-time process
You can use a timer object. See details here and here.

casi 3 años hace | 0

Respondida
How to read time of (YY:DOY:SSSSS) format ?
Try this: readtable(filename, 'Format', '%{uu:DDD:SSSS}D %f')

casi 3 años hace | 0

| aceptada

Respondida
Add percentage symbol (%) on contour lines (2019a)
Use '%%' to write the '%' symbol: fprintf('%%\n');

casi 3 años hace | 0

| aceptada

Respondida
How to interpolate geometry along Z axis?
You can use Matlab scatteredInterpolant or griddata.

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

Resuelto


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

casi 3 años hace

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

casi 3 años hace | 0

Cargar más