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

20 days ago | 0

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

24 days ago | 1

Answered
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 = [];...

24 days ago | 0

| accepted

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

25 days ago | 0

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

25 days ago | 0

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

25 days ago | 0

| accepted

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

25 days ago | 0

| accepted

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

26 days ago | 0

| accepted

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

27 days ago | 0

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

27 days ago | 0

| accepted

Answered
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; ...

27 days ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 0

| accepted

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

1 month ago | 0

Answered
Dimensions of arrays being concatenated are not consistent.
hello this is my suggestion get the data simply by this command : data = str2num(Lines(2)); myFolder = 'mydrive'; f...

1 month ago | 0

| accepted

Answered
how to determine both of sheet number and name of sheet with (writecell)
hello writecell does not allow you to specify in the same command a sheet number and a sheet name Specify the worksheet to w...

1 month ago | 0

Answered
Is it possible to align two data sets with irregular sampling while preserving the respective indices?
hello I gave it a try and this is my best result so far first I simply used the time delat between the red dots (easy soluti...

1 month ago | 0

| accepted

Answered
single sided fast fourier transfrom from a data file
hello if your number of periods recorded is not very high and your signal is "clean" then I would prefer to mesure the time di...

1 month ago | 0

| accepted

Answered
How do I perform a formatted read on exponential data?
Coming a bit too late in the show... filename = 'tabled1.txt' header_lines = 1; data = get_my_data(filename,header_lines) ...

1 month ago | 0

Answered
Second to last row?
hello I have nothing personnally against your code , but it's slow and impractical as you have this issue with the "end" at th...

1 month ago | 0

Answered
Converting beat-by-beat data into second average
hello you can use smoothdata to smooth / average your curve then you do the interpolation to resample at dt = 1 second nota t...

1 month ago | 1

Answered
how to generate multiple curves with the same track length
hello try this % rope at rest (straight) would have length = 1 (= max(t)) n = 1000; t = (0:n-1)./n; max_length = 0.7; %...

1 month ago | 0

| accepted

Answered
How do I import multiple CSV files from a directory as tables in the workspace?
hello try this %% read multiple csv files P = pwd; % currrent directory S = dir(fullfile(P,'*.csv')); % get list of files...

1 month ago | 0

Answered
Help with finding frequency, amplitude and error of a signal that I'm uploading from a simulink model
hello again if your data are "clean" sinewaves but the number of samples is limited then computing the period via the time diff...

1 month ago | 0

| accepted

Answered
How to identify and read similar files names in a folder and then create a matrix array with the data
so an updated version of the code to load data and headers of your files I used an older but still usefull readclm function (se...

1 month ago | 1

| accepted

Answered
How to identify and read similar files names in a folder and then create a matrix array with the data
hello I created first some dummy files according to the list (would have been a bit easier with a txt file rather than a pictu...

1 month ago | 1

Answered
How to plot the time series data after remove the phase lag?
hello I assume this is the result you are looking for for me 170° is almost a polarity inversion, so I changed the y to -y a...

1 month ago | 0

| accepted

Answered
How to find the maximum point of a fitted curve
hello a simple and compact code that only uses this Fex submission smoothn - File Exchange - MATLAB Central (mathworks.com) ...

1 month ago | 0

Answered
using regexp to parse specific line
hello I assumed there could be more than one line , but I also assumed that they would be written exactly the same way so I en...

1 month ago | 0

| accepted

Answered
Data in multiple separate .xlsx sheets and move to only one .xlsx sheet
hello again Augusto try this code : make sure you have downloaded the File Exchange submission first : Natural-Order Filena...

1 month ago | 0

| accepted

Load more