답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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 ...

4년 초과 전 | 0

답변 있음
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); ...

4년 초과 전 | 0

| 수락됨

답변 있음
textscan of mixed data type data file
hello try this readclm is a old but still valuable function (don't even remember where it came from) the variable names are...

4년 초과 전 | 0

더 보기