Réponse apportée
How to fill missing frequency response data at the beginning and end?
Nathan as said above, here the full code : %% playgroundFillGaps clc;clear;close;format compact; format short g; newFs = ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I am trying to write a function to calculate frequency of a signal by comparing values to a threshold.
hello FYI demo with constant and non constant signals period are computed by getting the threshold crossing time data hop...

presque 4 ans il y a | 0

Réponse apportée
How to print line from txt file based off of keywords
hello seems I have already seen that question in the recent past .... %%%%%%%% main code %%%%%%%%% clc clearvars filenam...

presque 4 ans il y a | 1

Réponse apportée
Extracting multiple row values (with unequal range) in a column separately
hello try this : clc;clear all a = readmatrix('saf_wind.csv'); ind_header = find(isnan(a)); % lines with 'P DEW' (seperate...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Correlation coefficient calculation error
hello seems to me the code could be made simpler, why the need to make all this cell acrobatics ? clear;clc;close all S = l...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Error: File: frelay_oldOf_09Jun2022_MINLP.m Line: 434 Column: 1 Illegal use of reserved keyword "end".
hi see the line : out_tbn=[tb1n tb2n tb3n tb4n tb5n..... is missing a closing bracket

presque 4 ans il y a | 0

Réponse apportée
Find flat regions in a signal above origin (time series data)
hello IMHO, you don't need the peaks code (and the for loop) to make the low amplitude signals to zero you can do it directly...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Surface roughness analysis from raw data
hello this is a starter , to do the spectral analysis of your data then you can use some low / high or bandpass filters to f...

presque 4 ans il y a | 0

Réponse apportée
Issue with locating end of poorly defined peak
hello again tried this - does it help ? load('iso.mat') curve = 10; % which curve do you want to plot ? data = per...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Why do I get zero frequencies in a fft when the constant offset is already removed?
hello the fft seems to me inappropriate in this case. If the goal was to find the time difference between the succesive pulses...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Gradient of a multiple line 2d plot,
hello I see you have a passion for for loops ! maybe you can do yours plots without a for loop this time . Added some code...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
how can I calculate movmean from 1 periode wave data?
hello we can use the peaks to compute this value as well you can use islocalmax (or islocalmin) to locate local peaks. Some...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
HOW TO PLOT X VS Y AT DIFFERENT Z
hello maybe this ? NB : I used large steps for pressure and temperature to avoid creating very large arrays - adapt to your ...

presque 4 ans il y a | 0

Réponse apportée
Get y value in plot(t-s diagram)
hello see my demo based on dummy data - trying to reproduce your case code : clc clearvars % dummy data n=1000; y= ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to load a specific column from files + FFT function
helo again as the signals are quite nn stationnary I assumed that a spectrogram is more appropriate than a "simple" FFT (with o...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
for loop summation problem
hello please clarify what is a and b in your request. Usually those letters are used for numerator (B) and denominator (A) of ...

presque 4 ans il y a | 0

Réponse apportée
Why am I unable to open .csv file with the readmatrix function?
hello workaround suggestions faster with readcell vs importdata >> tic; out2 = str2double(split(readcell('t4md6p1 - partia...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How can I cut the number of frames down?
hello Hannah I tried to improve my first (very simple suggestion) here some (hopefully) improvements : detection of "valid" ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Using a for loop to read in 16 data sheets and storing one value from each data sheet in a vector - full problem explained
hello I don't see why the code needs two for loops seems to me one suffice and this code gives the answer in mSTRESS (vector...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to load a specific column from files + FFT function
hello my first suggestion is for looping inside a folder to load txt file data % read current filenames in folder S = di...

presque 4 ans il y a | 1

Réponse apportée
What is the best option to import individual columns from text files?
hello see suggestion below you can expand on this code to add a condition statement on the file counts to switch from 3rd t...

presque 4 ans il y a | 1

Réponse apportée
Plotting two graphs simultaneously in a for loop
hello using your x and y data , see answer (example) below : %% create animatedline object / handle figure h1 = animatedli...

presque 4 ans il y a | 1

Réponse apportée
ECG signal baseline drift correction
hello a simple high pass filter suffices %--Load Real signal--% load ('100m.mat'); RealECG = val/200; Fs = 360; % Hz L ...

presque 4 ans il y a | 0

Réponse apportée
Running 4 MATLAB Scripts to read, process and plot data from many csv files
hello see example below clc clearvars %% define path yourpath = pwd; % or your specific path list=dir(yourpath); %get ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to plot time with correlation of two matrix?
hello here you are : A=[1 2 3 4;4 6 5 7; 1 8 9 3; 1 2 3 4; 3 2 4 1; 4 3 2 1; 5 6 7 4]; B=[0 1 2 3;3 5 5 7; 2 9 9 3; 2 3 4 4...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to add a verteical pad obove and below the curve and graph style and color displays?
hello Nisar this is my suggestion , and result your last mat file does not contain the f data so I skipped that portion of co...

presque 4 ans il y a | 0

Réponse apportée
How to read all mat files in folder and save plot as image
hello you can try / build your solution based on this example here I wanted all data being in one single plot so I concatenat...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
model fit comparison matlab
hello this is basically waht is called the R² correlation coefficient . If it get's close to 1 it's a good fit, if it get's cl...

presque 4 ans il y a | 0

Réponse apportée
How to replicate this graph with random peaks?
hello see little demo below , based on random data (up to you to specify x, y centers , sigmas and z amplitudes ) here I gen...

presque 4 ans il y a | 0

Réponse apportée
Import Labview Text file with lines of text above a two column data set
hello there are 10 header lines in your file (attached for double check) code is simply : >> data = readmatrix('Data.txt',...

presque 4 ans il y a | 0

Charger plus