Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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) ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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; %...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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) ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to store char to a text file?
hello Mark try this ; your char array must be first transformed in string , otherwise this code will not work hope it helps ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How Can I Plot Multiple Points Without Mathlab Joining Them?
hello as usual , first thing to do is to read the doc 2-D line plot - MATLAB plot - MathWorks France you can get a dotted p...

plus de 3 ans il y a | 1

Réponse apportée
Combine excel files into one
so I relicated the same folder tree and file name (same in every folder) this is a slightly modified code , try it : path ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I use smoothing like in excell?
hello try with smoothdata from your data , I was expecting that freq is your x array and material_A your y array this is wha...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
formatting text file using matlab
hello let's start with one file ... then we will add the for loop to process many files in one operation there is still one p...

plus de 3 ans il y a | 1

Réponse apportée
FFT for Lift coefficient to find the frequency
hello I prefer to put the repetitive fft lines in a subfunction , so the code can be cleaner and more compact for the fft re...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Download NetCDF data via command window
hello (again) Augusto try this code. The results are saved in one single excel file (attached FYI), each year on a new sheet...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
While loop stops short of meeting the condition
hello @Milos Krsmanovic why not using this code ? as you see the zero (or any other threshold value) points are obtained with l...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to put an audio file through a filter made through matlab
hello some corrections needed, but you were pretty close to the solution [y,Fs] = audioread('song.wav'); Fl = 300; Fh = 3...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Extract data from specific latitudes and longitudes in time in NetCDF (.nc) to .csv
hello Augusto I fixed a few minor bugs in the code . Also I noticed from the nc file that the range for longitude data is 0 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to join multiple Excel files of varying lengths
hello try this : fileDir = pwd; % current directory (or specify which one is the working directory) outfile = 'OUT.xlsx'; %...

plus de 3 ans il y a | 0

Réponse apportée
How to obtain PSD of time series data using pwelch()
hello if you want the finest frequency resolution, the fft length must be equal to your signal length. You could even virtuall...

plus de 3 ans il y a | 0

Réponse apportée
read and write xlsx files
hello see example code below you can either write the result as a simple numeric array (as here) with writematrix, but if you ...

plus de 3 ans il y a | 0

Réponse apportée
How can I select imagesc boundaries on the y-axis?
hello Kathy you needed indeed : to reverse the Y direction for imagesc How can I reverse the y-axis when I use the IMAGE ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
xcorr and finddelay giving erroneous results for offset sine waves
hello @James Draper see code demo below for zero crossing (with linear interpolation for best time accuracy) you have access t...

plus de 3 ans il y a | 0

Réponse apportée
Extract a range of frequencies and power from X-Y vector/array
hello some minor bugs , see comments this is what you wanted : load phaseNoise.mat plot(fnew,pnew) x_index = (fnew >= 1...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Automate the code for data extraction
hello you can try this : folder= pwd; % put here folder where wav files are C=dir(fullfile(folder,'*.nc')); %list all n...

plus de 3 ans il y a | 0

Charger plus