Réponse apportée
Smoothing the Data with For Loop (Sliding Window)
hello seems to me smoothdata can do what you need plot(temperature) hold on ts = smoothdata(temperature,'gaussian',30); ...

environ 3 ans il y a | 0

Réponse apportée
error reading csv file
hello readtable reads your file without any issue you may have to do a bit of code updating T = readtable('MH.csv'); T ...

environ 3 ans il y a | 0

Réponse apportée
Finding peaks with a set amplitude range?
hello see the demo code below : n = 100; x= 1:n; y = rand(1,n); [pks,locs] = findpeaks(y,x); logicalIndexes = (pks > ...

environ 3 ans il y a | 0

Réponse apportée
How to find min/max points on a surface inside a given area
hello try this using inpolygon allows you to define the points inside your triangle the max point is given by the red diam...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Filter value from multiple columns
hello I assumed you want all the rows where there is at least one 1 in the columns 20 to 24 xcol=20:1:24; [r,c] = find(tN...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
i want to plot freq response of FIR filter
hello try this b= [1 -2 4]; freqz(b,1)

environ 3 ans il y a | 0

Réponse apportée
How to load multiple .mat files which are having subfile in .mat format using the loop?
hello I suspect you wante to store the data in a cell array (and not a regular numeric array) so try this : matData = 1×2...

environ 3 ans il y a | 0

Réponse apportée
For each peak, I would like to calculate the delta (shown in image) for the plot in the script at each threshold level in a table.
hello seems to me the code is fine for one single value of Strain because then X and Y have same size as soon as you have mul...

environ 3 ans il y a | 0

Réponse apportée
Cut Audio Signals (.wav) in specific time.Create a repeat loop to reach the desired time
hello try this I tested the code for mono and stereo wav files - should work even for more channels data now please notice ...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to start loop when it finds the first maximum
hello this code does work maybe simply you have to pay attention that such condition statement may not work well simply beca...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
change signal frequency by known freq step
hello try this I assumed you wanted the output signal also sampled at 20 kHz % create some dummy data (as it if was a recor...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
plot running time complexity
you need your n start at zero and not 1 to see n^2 and n^3 curves below curve y = 1 and y = n n = linspace(0,2); f1 = n.^n...

environ 3 ans il y a | 2

Réponse apportée
How to grab specific value in txt data?
hello try this : D=readlines('2022_01.txt'); % read as string array % find the time and date lines ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to apply Butterworth filter to an inertial signal metrics?
hello this is a demo code (with 3 channels dummy data) that will display time and averaged fft plot it includes banpass and...

environ 3 ans il y a | 0

Réponse apportée
Read images based on datetime
hello Sigmund this is a starter .... In the middle of my brainstorming I was momentary worried that in 'Struct' the filename ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
how to separate a large text file into individual text files based on date, but also export headers?
So here we go A code that is certainly not as refined as StarStrider's .... filename = 'Gwynedd_1992.txt'; [outdata] = readc...

environ 3 ans il y a | 0

Réponse apportée
How to generate Image from Raw Data and find Peak Value
hello try this code below the peak coordinates are stored in xmax and ymax for one single peak , max is sufficient; if you ...

environ 3 ans il y a | 0

Réponse apportée
I need to plot circles with different radius and centers .Also I need to extract that information of centers and radius.
hello no need to use meshgrid here (why ??) try this instead the centers and circles are plotted with same color here (bu...

environ 3 ans il y a | 0

Réponse apportée
Area Normalize EPR Spectra
hello I presume that negative signal area should aslo be counted as positive area so this line is wrong AreaUnder...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Hi there, i just want to design and apply a 2s hanning window with 50% overlapp on my EEG signal in order to segment it , i've tried with @hann command but i couldn't get it
hello see example below the signal gets splitted in 2s buffer and windowed see the subfunction at the bottom of the code :...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Data fitting in between following variables x and b for quadratic equation
hello again seems to me b can be expressed as a first order polynomial of x b = 1.4952 + 0.0097108*x you can of course inc...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
In a function we need to input the first element of matrix?
hello simply this. personnay I don't like to use the same variable name in both iput and output of a function . y = myFIRST...

environ 3 ans il y a | 0

Réponse apportée
how to plot repeating steps graph real time/animated
hello maybe this %% create animatedline object / handle figure h1 = animatedline; h1.Marker = '*'; h1.Color = [1 0 1]; ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Saving 2D index ranges in a single variable
hello why not this : % Input image rawImage = rand(50, 100); % Save a 6px x 3px ROI % roi_xrange = [1:3]; % roi_yrange =...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
To find exponent in power law equation of the form y = ax^m + b
hello try this may need some refinement for the initial guess for the parameters depending of your data a = 0.55; m = 1....

environ 3 ans il y a | 0

Réponse apportée
Selecting two values of an array randomly and reversing the values between
hello try this the output has values between 2nd and 5th data flipped n = 10; A = (1:n) % array ind1 = 2; % first inde...

environ 3 ans il y a | 0

Réponse apportée
How to calculate mean within a for Loop
hello you have to index your output (mean_numerically(n)) , otherwise it get's overwritten at each iteration for n=1:length(b...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Rotate set of data points
hello see below the home made solution performs better than built in detrend matlab function (even with 'linear' argument) ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Further processing of contour plot data
hello maybe this ? clc,close all clearvars N = 100; % <= added x = linspace(-pi,pi,N); y = linspace(0,2*pi,N); [X,Y] ...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Find specific area of a rotational speed curve
hi Konrad tried a few things first I think you could drastically reduce your sampling rate by a factor 1000 ! this graph do...

environ 3 ans il y a | 1

| A accepté

Charger plus