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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 2

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

Mehr laden