Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
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*...

plus de 4 ans il y a | 0

Réponse apportée
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=...

plus de 4 ans il y a | 0

Réponse apportée
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 ...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
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 = ...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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 ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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(...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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); ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 1

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to curve fit an equation that gets values from another equation?
hello my first job was to make your code a bit more efficient and streamlined also notice you use both "e" for variable name ...

plus de 4 ans il y a | 0

Réponse apportée
How do I import complex numbers into MATLAB when I only have amplitude and phase data in seperate columns?
hello see below clc clearvars M = csvread('PP-R3 - FRF H1.csv',19); freq = M(:,1); data_complex = M(:,2) + 1i*M(:,3); ...

plus de 4 ans il y a | 0

| A accepté

Charger plus