Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
Read large dat file and get the necessary data
hello I made this little wrapper for you the amount of parameters you can export is up to you () here the full monty with a...

4 years ago | 0

| accepted

Answered
how do i plot a straight line and also change then range of the x axis and y axis ?
hello Grace maybe this ? I added a line between the two points you defined and using xlim and ylim you can change the visual...

4 years ago | 0

Answered
overlap of a scatter plot on a 2D imagesc matrix
hello Giulia maybe this ? clear all, close all, clc n0= 1; % Refractive index of ...

4 years ago | 0

| accepted

Answered
How can I write a loop that will normalise each column of data to zero?
hello IMHO there was only this bug then you can see we can plot the data (unwrapped) without any issue for normalise_loop...

4 years ago | 0

| accepted

Answered
How to sequentially read .txt file to .mat with random names available in a folder
hello see this demo for importing csv files .. you can easily adapt this code for txt files. I use natsortfiles (from FEX) ...

4 years ago | 0

| accepted

Answered
Loop through multiple gait strides and time normalize
hello see my code below - it will extract all cycles of data and perform averaging (the black dotted lines) clc clearvar...

4 years ago | 0

Answered
finding peak value after minimum value
hello this would be my suggestion - I added also the local peak "before" the global min also for sake of convenience clc ...

4 years ago | 1

| accepted

Answered
help with deleting zeros from an array
hello could not really figure out what in your plot is weird but at least if you really want to remove zero or almost zero val...

4 years ago | 0

| accepted

Answered
How to replicate Matlab moving average to Simulink model?
hello in terms of signal processing, a moving average filter is a FIR with all coefficients of the numerator equals ( = 1/n i...

4 years ago | 0

| accepted

Answered
Changing text file name changes the plot of data after using dir('*.txt') ??
hello a "low cost" solution for those who don't have the Curve Fit Toolbox I force all fitted data to share the same xfit x da...

4 years ago | 0

Answered
Read and perform for loop on very large text files
hello why not work line by line (from the data file) and do what your code is supposed to do at each step ? here a example ...

4 years ago | 0

Answered
How to choice the right frequency analysis
hello a spike or impulse will have a uniform (flat) energy distribution across a large frequency range you can see that on t...

4 years ago | 0

Answered
how to convert digital pulses into RPM ?
hello see attached simulink file (R2020b) using a counter you can compute the frequency of your inputs signal between success...

4 years ago | 0

Answered
Split a binary sequence into two parts one integer part and one decimal part
hello try this : % solution a = 100101; decimal_position = 2; b = num2str(a); d = bin2dec(b)/2^decimal_position;

4 years ago | 2

Answered
How to discard beginning and end of the signal when extracting elements of the signal identified via findpeaks?
hello I wanted to challenge your code and came with a different solution . This new code will retain only valid peaks with on...

4 years ago | 0

| accepted

Answered
signal wave sorting ?
hello this would be my suggestion : first , unwrap the angle data , then find the x coordinates for a given y (common) value fo...

4 years ago | 0

Answered
Is there a way to extract the numeric data from these chars?
hello you can do that (will simply combine minutes and seconds into only seconds time vector) but as your original data has r...

4 years ago | 0

| accepted

Answered
Convert audio file in a frecuency matrix
hello FYI, this is a code to do spectral analysis you can use some basic low pass / hgh pass / notch filters as well enjoy !...

4 years ago | 0

Answered
Zeigler-Nichols reaction curve
hi probably you wanted to do this : t=0:0.01:3.0; opensys=tf(5,conv([1 18],[89 87])); y_opensys=step(opensys,t); plot(t...

4 years ago | 0

Answered
Need to find "Knees" in Stress Strain curves where slope change abruptly
hello this would be my first suggestion of course the results may be sensitive to the threshold used in my method (based on ...

4 years ago | 0

| accepted

Answered
For loop on multiple sensors
hi sure it's possible for ck = 1:5 max = max(sensors(:,ck)); disp(max); end

4 years ago | 0

| accepted

Answered
Make a grid (1 x1) out of scattered insitu data and take the average of each grid that has data
hello this would be my suggestion, based on dummy data (left picture) - result appears in right picture clc clearvars %...

4 years ago | 0

| accepted

Answered
Loop Rate of Change with Negative Values
hello I assumed that the time axis in your file is as folows : first (top value) is the oldest and last (bottom) is the newest...

4 years ago | 0

| accepted

Answered
How can i generate coefficients (Num, Deno) for allpass filter?
hello try this : function [b,a]=allpass(n,Fst,Fed,mag,Fs) %Creates an allpass filter % %Syntax: % >>[b,a]=allpass(n,Fst...

4 years ago | 0

Answered
How to import files in bulk and loop over them
hello to start... an example below to show how to loop over directories and load in natural sorting order the files in each fo...

4 years ago | 0

| accepted

Answered
Loading variables from different folders containing subfolders in loop
hello an example below to show how to loop over directories and load in natural sorting ordre the files in each folder clc c...

4 years ago | 0

| accepted

Answered
Highlight peaks/dents in a heatmap imagesc()
hello a very simple code that combines surf and contour (will not draw a circle but maybe it's still a valuable solution) [X,...

4 years ago | 0

| accepted

Load more