Respondida
How to cut ASCII file with matlab ?
hello Mathieu this would be my suggestion - create a structure with field names taken from your data file - See the function...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to extract the maximum value of an area of a figure?
hello so your data is a matrix (hrms) what is the dimension of hrms ? you are probably confused between the range of that y...

alrededor de 4 años hace | 0

Respondida
Find maximum in graphic
hello following this example : A = [1 2 3; 4 5 6] [M,ind] = max(A,[],'all','linear') % max value of matrix [row,col] = in...

alrededor de 4 años hace | 0

| aceptada

Respondida
data extraction from f06 file
hello my friend here you are the result is stored in Result_c clc clearvars fileID = fopen('flutter_2d_rh_wing_base.f0...

alrededor de 4 años hace | 0

| aceptada

Respondida
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 = ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 1

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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= ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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" ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 1

| aceptada

Respondida
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...

alrededor de 4 años hace | 1

Respondida
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...

alrededor de 4 años hace | 1

Respondida
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...

alrededor de 4 años hace | 1

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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 ...

alrededor de 4 años hace | 1

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

Cargar más