Answered
How to remove relative frequency information in time domain?
hello this would be my suggestion, based on using multiple notch filters (simply add a new frequency to the list and the filte...

4 years ago | 0

| accepted

Answered
Simulate tachometer varying refresh rate
hello why not using a counter ? sampled at a high (fix) frequency rate. This simulink code attached is a demo (Fs = 100 kHz...

4 years ago | 1

Answered
How to export 1 column of data with variable names on separate lines
hello this demo to flip a (vertical) 5 (variables) x 3 (values) table to hor direction now the saved data (in txt file) is li...

4 years ago | 0

| accepted

Answered
Replace string values in a table
hello my 2 cents suggestion Typ = readtable('Typ.csv'); Typ = table2array(Typ); for i = 1:numel(Typ) if((Typ(i))== 1...

4 years ago | 1

| accepted

Answered
How do you extract the elements of a cell that have the largest length?
hello here my suggestion A = [{[7 8 9]} {[6 10]} {[4 5 6 7]'} {[1 2 3 4]'}]; [s,d] = cellfun(@size,A); out = max...

4 years ago | 0

| accepted

Answered
How can I make the code make an action during part of the curve and make another action during certain part of the curve
hello Hassan this is my suggestion - was not straightforward but hopefully it fills your need ! the minor loops data are xx a...

4 years ago | 0

| accepted

Answered
How to convert a varying (Hall) pulse signal to frequency in simulink?
hello see attachement make sure the sampling frequency is set according to your preference (here it's 100 kHz) all the best...

4 years ago | 1

| accepted

Answered
Help Segmenting signal processing
hello see my little demo below. I assumed that you would split the rms data in 3 groups corresponding to ranges 0 to 33% of ...

4 years ago | 0

| accepted

Answered
How to interpolate my data to produce a variable tolerance band
hello maybe this ? your 2 and 5 factors are my a and b in the code below : clc clearvars % dummy signal n=300; x=li...

4 years ago | 1

| accepted

Answered
Pattern extraction from a signal
hello maybe this ? (already discussed above) clc clearvars % dummy signal n=1000; x=linspace(0,2*pi*3,n); y = 0.25*...

4 years ago | 0

Answered
How to show maximum variation of two dataset using contour plot with single colorbar?
hello even without caxis , I simply used the jet colormap to have more colored contrasts data1=load('data1.mat'); data1=...

4 years ago | 0

Answered
Writing a Recursive Function
the results appears like this for n = 5 N = 16 0 0 0 0 8 8 0 0 0 4 4 ...

4 years ago | 0

Answered
Writing a Recursive Function
hello see below Nb : matlab is not a zero based indexing language , so first index is 1 instead of 0 %% initialisation n...

4 years ago | 0

| accepted

Answered
Index exceeds the number of array elements for a For loop
hello Asit there was some obvious bugs in your recursion / variables used and also I corrected the "else" lines which do not...

4 years ago | 0

| accepted

Answered
I have a data set from an ORAS analyzer. It gives a cyclic pattern. i want to take each cycle and plot on top it ?
hello again a demo code below (data file in attachement) hope it helps clc clearvars data = readmatrix('data.txt'); tim...

4 years ago | 0

Answered
How to plot extract periodic regions of interest from a signal profile?
hello this is my suggestion all the best clc clearvars data = readmatrix('profile.txt'); time = data(:,1); data = da...

4 years ago | 1

| accepted

Answered
Find local min point in plot between range
hello Anton (again !) this would be my suggestion - based on dummy data % some dummy data Wavelength=1:1000; reflection = ...

4 years ago | 0

Answered
Extract data from figure
hello Anton I created some dummy data - as you didn't provide the excel file here my suggestion, for one local minimum cl...

4 years ago | 0

Answered
How to flip a signal ?
hello you simply apply a negative gain = -1 to your data you want vertical flipped %Load data load('P_acc_y_cycle') %Plot ...

4 years ago | 0

| accepted

Answered
Help to generate periodic triangular pulse and vary its duty cycle.
hello your code generates a 400 sawtooth signal , not a 2 kHz triangular wave I made a few mods in your code to get the corre...

4 years ago | 0

Answered
The code provided is not recognizing the decimal_Fm as a variable, making this function uselless when placed into another m file. Any suggestions?
hello I fixed your code : the function was missing and else statement in case the L values are not in the numerical range al...

4 years ago | 0

Answered
Calculating Time to Stabilisation in Vertical Force Data
hello this would be my suggestion clc clearvars y = [1,3,10,2,4,6,6,6,6]; dt = 0.01; t = (1:length(y))*dt; y_end = y(...

4 years ago | 0

Answered
How to repeat a signal after a certain time?
hello in my limited time , I preferred to use the simulink file simply to have the pulse signal (called y1) the zeroing ac...

4 years ago | 0

| accepted

Answered
How to split a column with numerical values?
hello this would be my suggestion load data.mat % convert structure to numerical array a = struct2cell(ICCs); a = s...

4 years ago | 0

Answered
How to calculate RMS and Crest Factor of separate data and combine into one file and one plot
hello this is my suggestion - maybe you will have to do a few mods according how the data is stored in your mat files (not sup...

4 years ago | 0

Answered
Keeping spreadsheet name as column header when looping through multiple excel files
hello this is just a piece of demo code to show the principle ; first we save the filenames (cell array) using writecell, the...

4 years ago | 0

| accepted

Answered
Segmetation of a heart sound signal, then after applying a threshold on the segments, concatenating the modified segments
hello Maddy I tried first to use your code but got an error message as "k" is undefined Spr_HS_neww(k,:)= Spr_HS_new(:,j); ...

4 years ago | 0

| accepted

Answered
How to apply butterworth filter to a few columns in a table
hello you can apply your filter on a numerical array , not a table , so convert it using table2array tab_pelvis_array = table...

4 years ago | 1

Answered
Fit an ellipse to data.
hello I simply used this FEX submission on your data, but removed first the positive y values are they are messing up everythi...

4 years ago | 0

Answered
How to plot the amplitude ratio and phase differences for two time series signals ?
hello Susan I modified your code : take the amplitude ratio and phase lag at the X and Y fft frequency indexes corresponding t...

4 years ago | 0

| accepted

Load more