답변 있음
import a certain text file .txt from a specific folder
hello again for numerical arrays use readmatrix instead of importdata folder = 'C:\Users\Alberto\....'; % folder where the .t...

3년 초과 전 | 0

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 1

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

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

3년 초과 전 | 1

| 수락됨

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

3년 초과 전 | 1

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 2

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 1

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 1

| 수락됨

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

3년 초과 전 | 0

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

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

3년 초과 전 | 1

답변 있음
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 = [];...

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

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

3년 초과 전 | 0

| 수락됨

더 보기