Answered
Can the arrow came directly following increasing OR decreasing behaviour of the curves
hello this is my suggestion the arrow generation is done after the two for loops , so it's done once instead of 6 times I ...

2 years ago | 0

| accepted

Answered
How can I plot multiple signals separately as like mentioned figure for avoiding this three signals overlapping?
the solution is : Stacked plot of several variables with common x-axis - MATLAB stackedplot - MathWorks France

2 years ago | 1

| accepted

Answered
How to find duration of peaks/valleys in chart
hello I have nothing against findpeaks but I prefer sometimes other solutions that are simpler and faster - therefore I usuall...

2 years ago | 1

Answered
I have a problem with my script. I would like to extract pH data from the coast of Cameroon or the Gulf of Guinea. Can I have some ideas on what is bugging my script and a cor
hello the provided nc file contains a lot of NaN data so don't be surprised here to get most of the time NaN as a result to y...

2 years ago | 0

| accepted

Answered
Draw angled ellipses around clusters on PCA plot
hello like this ? Plot ellipse on scattered 2D data - File Exchange - MATLAB Central (mathworks.com) see files in attachmen...

2 years ago | 0

| accepted

Answered
plot the fundamental harmonic wave
hello again so this is it, we do a single frequency DFT (aka order extraction) at the second harmonic (as we have two period of...

2 years ago | 0

| accepted

Answered
Linear fit in loglog plot
hello maybe this ? you can make a much more compact code , as shown below : struct_load = load('mystruct.mat'); xdata = s...

2 years ago | 0

| accepted

Answered
How to save the result of each loop separately
hello some solutions : y = [3 4]; for k=1:length(y) % solution 1 : store as cell array x{k} =zeros(y(k),2); ...

2 years ago | 1

Answered
Extracting portions of data using indices
hello Alexandra and welcome back ! I tried this , let me know if it's what you needed the output cell (Gait_cycles) contain ...

2 years ago | 0

| accepted

Answered
How to detect & fitting curvature from the binary image?
hello this would be my suggestion, based on this Fex submission : smoothn - File Exchange - MATLAB Central (mathworks.com) ...

2 years ago | 0

| accepted

Answered
I want to calculate the Moving RMS on first break pics for seismic data.
hello again see below , now you have the RMS values displayed in the legend (or you wanted to make a separate plot ? ) % De...

2 years ago | 0

| accepted

Answered
k-means segmentation for Raman analysis
hello I get something quite different from your expectation first I looked at first group of excel files coordinates_group1....

2 years ago | 0

| accepted

Answered
How do I create a matrix that is only the frequencies within the COI of a wavelet transform coherence?
so now the final code the idea is to create a mask so that wtc values that lies below the coi curve are zeroed % specific co...

2 years ago | 0

| accepted

Answered
Why is the filtered signal mirroring the raw one ?
hello I think what you interpret as "mirrored" peaks is just pure luck, for the good reason that there are no scientific reaso...

2 years ago | 0

Answered
How do I optimize graph size?
hello first idea would be to use a Y log scale so it would reduce the black curve peak and you would see better the blue and r...

2 years ago | 0

Answered
How to find time of rising and falling edges
hello see file attached , this is a good starting point here we want to measure (in samples) the time difference (period) be...

2 years ago | 0

Answered
How to animate a mesh plot of a cylinder to expand and contract along the X-axis using a sine wave?
hello maybe this ? t = 0:0.01:2; % homogenous radius variation f = 1; a = 0; % see the effect with a>0.5 x = a*sin(2*p...

2 years ago | 1

| accepted

Answered
Creating multiple plots in one graph from multiple .txt files
hello try this : d = dir('NW*.txt'); % d is a structure array that contains the list of all txt files starting with NW ...

2 years ago | 0

Answered
Lines of magnitude plot of bode diagram
hello try this - hope it helps I opted for the convention of 3 dB below the peak amplitude point (which is not the 0 dB) but...

2 years ago | 1

Answered
how to generate different curves(data) from one?
hello I used the equations as they appears in the attached image . I thought that would be better rather than trying to derive...

2 years ago | 0

| accepted

Answered
How to plot a surface with lat, lon and depth?
hello @Francesco I wanted to show you how to use trisurf on scattered data but my example failed as it seems your data represen...

2 years ago | 0

Answered
I need to determine the no. of loops and area under each loop from the xy plot.
hello with the help of this FEX submission, it was quite simple : Fast and Robust Self-Intersections - File Exchange - MATLA...

2 years ago | 2

| accepted

Answered
Im struggling with how to properly format my table.
hello Emily see attached a few matlab functions that can help you in displaying nice looking tables all the best

2 years ago | 0

Answered
Audio distortion using IIR filters for an audio equalizer
hello simple correction % Convert to SOS matrix [sos] = zp2sos(z,p,k); filtered_audio = sosfilt(sos, input_audio); and ...

2 years ago | 0

Answered
How to use 2D FFT to remove horizontal noise from the image
hello you can start with simple 2D filtering here some examples you can easily try once you have dowloaded those functions :...

2 years ago | 1

| accepted

Answered
How to simulate a signal with a slow (sinusoidal) drift as experimental input for an app?
hello again this would be my suggestion now , we are looking at very high frequencies so I wonder what signal duration you ar...

2 years ago | 1

| accepted

Answered
Linear regression on data with asymmetric measurement error
hello Katrina maybe this ? you can force the mean curve to get closer from either the upper or the lower bound by adjusting t...

2 years ago | 0

Answered
Hello, I need help interpolating data with two lines for each baffle cut percentage in MATLAB. How to select and interpolate the right line automatically based on user input?
hello @Subathra Nilamegan as far as I understand , when you say your data has two line you mean for example the left and right ...

2 years ago | 0

Answered
How to move data from cells in a cell in a destinct column (importing CoDeSys variables)
hello maybe this ? where the lines in your file do not have initial values , I inserted a zero in 3rd position ; this is don...

2 years ago | 0

| accepted

Answered
Calculating the directional and magnitude frequency of wind at specific angles
hello well, your code looks a bit strange to me first error is that find does not operate on table elements. You could have ...

2 years ago | 0

| accepted

Load more