Respondida
How to use smoothing spline to fit a closed curve?
hello this will do the trick all the best , load('exampledata.mat') x = data1(:,1); y = data1(:,2); centroid_x = mean(x)...

casi 6 años hace | 0

| aceptada

Respondida
How to read the data file and assign it for the variables
hello so I modified the way you load the data and assign them to FD array I works on my side all the best , % close all C...

casi 6 años hace | 0

| aceptada

Respondida
How can I only pass the signals that I want ?
hello this code will do fft / spectrogram and bandpass filtering - adapt the corner frequencies to your own needs ! clc cle...

casi 6 años hace | 0

| aceptada

Respondida
split wav file based on txt file (two vectors - start time and duration)
hello Fatima happy new year ! this code will do the trick : [song,FS]=audioread('demo.wav'); channel = 1; song = so...

casi 6 años hace | 1

| aceptada

Respondida
Combine writematrix with a text header and safe as file
hello simon welcome back and happy new year ! I somehow recognize this code.... and now comes the upgraded version that appen...

casi 6 años hace | 1

| aceptada

Respondida
Convert five numeric variables into strings in a text file
hello again so this little piece of code will extract the data and display it in the command window. It assumes that the data...

casi 6 años hace | 0

Respondida
how to eliminate zeros in the output of fast fourier transform (matrix / array)?
hello FYI, this is a code to do averaged fft analysis + findpeaks demo + notch filter (extra bonus) you can import the data f...

casi 6 años hace | 0

| aceptada

Respondida
Efficient pass filters for EEG signals
hello this is a script with fft analysis and bandpass filter example hope its helps %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % F...

casi 6 años hace | 1

Respondida
How to set ticks in imagesc colorbar based on a matrix value?
hello this is how you can make the ticks range match the A range demo : A = 15*rand(17,22); imagesc(A); title(['Graph']);...

casi 6 años hace | 0

| aceptada

Respondida
Import data with several sheets
hello Victoria happy new year first ! this little piece of code will import evry sheet and stack the data , I assumed you wa...

casi 6 años hace | 0

| aceptada

Respondida
HOW CAN I TIME SHIFT A SIGNAL (FOR EXAMPLE I HAVE GAUSSIAN PULSE AND I WANT TO SHIFT ITS PEAK 3ms IN TIME)
hi see below time shifting do actually work I choose f0 fast enough so that a 3 ms delay is long compare to the pulse perio...

casi 6 años hace | 0

Respondida
Evaluate the system impose response function and the FRF with given input and output data
HELLO had to find another way than using the ID Toolbox (as I don't have it) so I basically tried to fit an IIR model to the...

casi 6 años hace | 0

| aceptada

Respondida
How do I convert pulses to RPM in simulink 2017a
hello this is my version, converted to R2017a hope it helps it runs at fixed step = 1/Fs with Fs = 1e5

casi 6 años hace | 1

Respondida
Replacing indexed row with string
hello see example below hope it helps test = (1:30); test(3:15) = 0; % create some zeroes in the vector %% main code %...

casi 6 años hace | 0

Respondida
I have phase versus Frequency data, Here i have to unwrap the phase starting from a particular(in between) frequency. is there anyway to do it in Matlab? Data file is attached for your reference.
hello first , notice that unwrap works on radians and not degrees , so there was an error that I corrected below; second, I c...

casi 6 años hace | 0

Respondida
What's the best approach to import sequential xls files and keep them separated?
hello again so this is a first code ; you need now to be more precise about how you want to do on the data : I need to imp...

casi 6 años hace | 1

| aceptada

Respondida
Taking A large spreadsheet and making it into smaller spreadsheets
hello Curtis try this , nothing fancy : %% load xlsx (param data file) data = readtable('params.xlsx','VariableNamingRule...

casi 6 años hace | 0

| aceptada

Respondida
Implementation Low Pass Filter without using any built function in matlab
hello below some digital filters used in audio signal processing hope it helps % % Cookbook formulae for audio...

casi 6 años hace | 1

Respondida
how to use spectrogram
hello below my little code for fft and spectrogram analysis here data are supposed to come from a wav file but you can easil...

casi 6 años hace | 0

Respondida
FFT on Force Coefficients to figure out Strouhal number
hello you can use this code to import and do fft analysis on your data you may needed to adjust the "load" data section depen...

casi 6 años hace | 1

| aceptada

Respondida
How is pspectrum() different from FFT() magnitude plotted in dB?
hello if your data lenght is very long, there is no reason why you could not getter better resolution with a standard fft re...

casi 6 años hace | 0

| aceptada

Respondida
How To Denoising The Arc Fault Signal using FFT
hi I am not sure fft will help you denoise your signal ; seems your sensor lacks a bit of gain before it gets acquired... th...

casi 6 años hace | 0

| aceptada

Respondida
FM modulation with vco
hello this is a simple home made vco the input is the signal frequency (fixed or variable) hope it helps release 2020b

casi 6 años hace | 0

Respondida
facing issue in FFT : P1 = P2(1:L/2+1)
Hi suggest this fft code that also allows averaging if needed : function [freq_vector,fft_spectrum] = myfft_peak(signal, F...

casi 6 años hace | 0

Respondida
FFT to convert time series data into frequency domain
hi my little code : clc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FFT parameters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% NFFT = 4...

casi 6 años hace | 0

Respondida
How to create a stickplot?
hello I interpreted your request as you want to change the LineWidth of the vector so it can look thicker I added this param...

casi 6 años hace | 1

| aceptada

Respondida
low-pass filtering a signal within a range determined by signal amplitude
hello Jose so this is a little code snipset, it uses a windowing technique as low pass filter the peaks are left as origina...

casi 6 años hace | 0

| aceptada

Respondida
Proper FFT-Analysis
hello this is a little fft function that do windowing and averaging hope it helps function [freq_vector,fft_spectrum] = m...

casi 6 años hace | 2

Respondida
How to import multiple excel files and pull data
hello again so , this is my code , it also includes the suggestion of Sindar along the two other options i implemented IMHO, r...

casi 6 años hace | 0

| aceptada

Respondida
Varying an Input to an Amplifier Model
hello you have to make A and t the same size to make it work so this is it : f1 = 100000; %input signal 1 frequency f2 ...

casi 6 años hace | 0

Cargar más