Respondida
Automatically identify two numbers within an matrix
hello Alberto welcome back ! here a demo for the 'matrix.txt' case the other one is basically the same , simply change t...

alrededor de 1 mes hace | 0

Respondida
Averaging data over array of cyclic values when cycle length is variable
hello Marie my suggestion below is based on "zero crossing" detection points, to isolate the individual segments of data (corre...

alrededor de 1 mes hace | 0

Respondida
Reading Multiple CSV Files in a Sequence
hello that's the Achille heel of the native dir command it will not sort the file names correctly you need this : Natural-O...

alrededor de 1 mes hace | 0

| aceptada

Respondida
How to make a good fittings
hello sorry I don't have the curve fitting toolbox but such a simple fit can be easily done with fminsearch the constant you...

alrededor de 1 mes hace | 1

| aceptada

Respondida
Distortion introduced by filtering interpolated data.
hello when you do non unique data removal and interpolation, you are introducing a little distorsion in your original signal ,...

alrededor de 1 mes hace | 0

Respondida
Broadband signal deesign
hello maybe this you can tune the frequency range , frequency spacing and amplitudes distribution according to your preferen...

alrededor de 1 mes hace | 0

Respondida
Problem with Fourier Transform fft
hello when you do the fft with a buffer length equal your signal length (as you did) you get the maximal frequency resolution...

alrededor de 2 meses hace | 0

Respondida
Index in position 1 is invalid. Array indices must be positive integers or logical values.
hello depending of your format, the command window will display more or less decimals I suspect c(i,2) = 272.0000.............

alrededor de 2 meses hace | 1

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

alrededor de 2 meses hace | 0

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

alrededor de 2 meses hace | 0

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

alrededor de 2 meses hace | 0

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

alrededor de 2 meses hace | 0

| aceptada

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

alrededor de 2 meses hace | 0

| aceptada

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

alrededor de 2 meses hace | 0

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

alrededor de 2 meses hace | 0

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

alrededor de 2 meses hace | 0

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

alrededor de 2 meses hace | 1

| aceptada

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

alrededor de 2 meses hace | 0

| aceptada

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

alrededor de 2 meses hace | 0

| aceptada

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

alrededor de 2 meses hace | 2

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

alrededor de 2 meses hace | 0

| aceptada

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

alrededor de 2 meses hace | 0

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

2 meses hace | 0

| aceptada

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

| aceptada

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

2 meses hace | 0

| aceptada

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

2 meses hace | 0

| aceptada

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

2 meses hace | 0

Cargar más