Beantwortet
save .TXT inside a specific folder
hello try this new_folder = 'C:\Users\....\Folder A' A = ; % matrix 200x3 double save(fullfile(new_folder, 'file.txt'), 'A...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I write self-invoking code for hundreds of wav files for the same loop and call those files to matlab?
hello something like this ? this demoes the excellent FEX submission Natural-Order Filename Sort - File Exchange - MATLAB ...

mehr als 3 Jahre vor | 1

Beantwortet
Identify lines that have a repetition (unique function)
hello simply this now the 4th column is your repetition quantity a=readmatrix("file.txt"); [output,ia,ic]=unique(a,'rows'...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to compute the correlation coefficient in the two data set.
hello so once we have digitized the picture with grabit , we have two data mat files (attached) available for further processi...

mehr als 3 Jahre vor | 0

Beantwortet
Fourier Transform of window functions
hello maybe this can help you wL = 30; % window length win1 = hanning(wL); win1 = win1/sum(win1); % normalize win2 = t...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Downsampled data exceeds the input data
a demo is maybe more efficient here so the original data gets resampled at 60 Hz by using only the start / end points of the t...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
smoothing with Gaussian Kernel for loop problem
hello try this lambda = 0.05; tv = (1:1:1000)'; nv =length(tv); ys = sin(4*pi*tv./max(tv))+0.25*rand(nv,1);% dummy data...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Correlation of similar Signals
hello maybe this ? define a buffer lenth and an overlap (here I took the max possible overlap) and use corrcoef (take the no...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Import not consistent table data
hello again so this first simple code will extract the data as one single block if you need to separate the data in individu...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
date time from filename
hello try this code below I use fullfile instead of your method to concat folder and basename your path and filenames shoul...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
creating the chorus effect without using a loop
hello the chorus effect is basically a multiple echo effect ; the echo by itself is a delayed version of the original signal ,...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I disregard part of the signal when calculating midline of my data signal?
hello see code below for midline and signal oscillation frequency computation (cycle to cycle "zero" crossing detection) a PI...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Import multiple .txt files and add separate arrays for each
hello Alex see code below natsortfiles may be an option if there is a stringent need to process the files in a truly sorted ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to smooth the curve indicated on the image?
hello you can try this adjust the amount of smoothing (and window type ) in this line : rs = smoothdata(r_new,'gaussian'...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I boost audio with a peak filter?
hello according to the doc Design second-order tunable notching and peaking IIR filter - Simulink - MathWorks France this i...

mehr als 3 Jahre vor | 0

Beantwortet
Collect several satellite images from the INPE/CPTEC collection
hello Augusto try this code as far as I could find out there are pictures available with a time delta of 10 minutes choose ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to fit a data to a model without using Statistical Toolbox?
hello @Decy it seems the model choosen is not realy a good match with the data (or vice versa) here a demo using fminsearch wi...

mehr als 3 Jahre vor | 0

Beantwortet
Find all global minima und maxima of an Graph
hello Benedikt someone will probably tell you how findpeaks is powerfull but sometimes I simply prefer to rely on old but good ...

mehr als 3 Jahre vor | 1

Beantwortet
Generating sequences with minimal overlap
hello maybe this ... the result appears in store_str (in your command window) % init edges = (1:1:9); k = 0; store = [];...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Check the data and replace it with corresponding values
hello Adeline try this code to make it a bit more compact and faster I remove the empty columns in your data file. the code w...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Script for audio analyzing
hello try this code FYI, having the sampling rate at 1MHz is massive overkill if you intend to analyse only below 1 kHz. I...

mehr als 3 Jahre vor | 0

Beantwortet
How can I find data on excel file and paste it back on excel?
hello you can try this code it could be made a bit simpler bu using the fact that the data to be retrieved from sheet 2 foll...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
FFT spectral leak?
hello the amplitude accuracy depends if your signal frequency matches or not the fft frequency vector bins . If not your estim...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Problems using 'tfest' for generating transfer function
hello again here a bunch of files to post process your data I don't have the ID toolbox but I have the Signal Processing Tbx...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
TXT File Population with Arrays and Text
hello maybe not the cleanest code but writecell make this doable without to much headaches % export results to txt filenam...

mehr als 3 Jahre vor | 0

Beantwortet
Collect cmorph data through matlab command window
Quick and dirty fix for the date , as we have it in the nc file name % Download the CPC data used in the script below % Direct...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I want to generate a lateral speed plot with range of forward speeds
hello you can do a for loop a = 1.34; L = 2.851; m = 2425; Iz = 2700.0; Caf = 1900; Car = 2000; b=L-a; g=9.81; ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Plot step response of transfer function
hello you have 2 mistakes to correct 1 - how to get a z transfer function from the difference equation your num and den are...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
how do you calculate frequency of squarewave
hello you can try this code % dummy data n = 10000; x = 25*(0:n-1)/n; y = sign(sin(x+0.25*x.^2)); threshold = 0.5*ma...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Storing data in columns not in rows
hello why not use a structure or a table ? it's much appropriate when dealing with variable size data sets % Define initial...

mehr als 3 Jahre vor | 1

| akzeptiert

Mehr laden