Respondida
How to fix Index exceeds matrix dimensions error?
hello Philip I corrected some minor bugs in matlab function blocks also lambda_nom is not initialized so I took lambda_nom =...

más de 5 años hace | 0

Respondida
Scaning a txt file
hello Carolina this code will scan the file and search for the targeted variables you can expand (add more variables) if you ...

más de 5 años hace | 0

| aceptada

Respondida
Edit Textfile for analysis
ok so my 2 cent suggestion to make that array looks nicer - lines = readlines('aba.txt','WhitespaceRule','trim'); ll_out ...

más de 5 años hace | 1

Respondida
Need Help about FFT and STFT
hello see the code below for (averaged) fft analysis and spectrogram you can easily incorporate a test to select samples tha...

más de 5 años hace | 1

| aceptada

Respondida
read files and check if something is number
hello see the different options in code below my prefered one is the second a=readcell('test.txt',"Delimiter",":"); % % o...

más de 5 años hace | 0

| aceptada

Respondida
Plotting a random walk step by step
hello IMHO, the problem comes that x and y are not reinitialized (put to zero) when you start the next walk so I changed thi...

más de 5 años hace | 0

Respondida
How to extract numbers from .dat file
hi again these are 3 options I tested for you ; i believe the second one is what you are looking for a=readcell('data.dat',"...

más de 5 años hace | 0

Respondida
How to compare two frequency time graphs?
hello see below , we are generating a signal with 2 frequencies , then do fft for showing their frequencies. the time plot w...

más de 5 años hace | 1

| aceptada

Respondida
How to denoise a response to step forcing?
hello I tried 2 simple methods : sliding window averaging : not very effective to fit an exp model : will almost give the ...

más de 5 años hace | 1

Respondida
using for loop plotting problem help me
hello I assumed that you wanted to plot I and error , but you forgot to index thos variables see below : f= @(x) 3*x^5+7*s...

más de 5 años hace | 0

| aceptada

Respondida
find the zero Value of a data
hello you use this function for detecting and ploting data crossing points threshold can be whatever value - not only zero ...

más de 5 años hace | 0

Respondida
Conditional statements on array.
hello Santos this is one way to do it split the input vector in 12 long extracts, then search for any value inside that is a...

más de 5 años hace | 1

Respondida
How do I import a column (f.e. C2:C37) of multiple Excel files into one vector in Matlab?
hello this is a simple code to load multiple excel (one sheet) data you can build your solution on this example file_list =...

más de 5 años hace | 0

Respondida
attenuate part of the audio
hello Sofia here some example below : %% example 1 : fading out the last 1 second of the wav file [Y1,Fs]=audioread('demo....

más de 5 años hace | 0

Respondida
How can I obtain the right convergence number from what I have done so far??
hello this seems to work better - :) clc clear x = input('Enter the angle in radians: '); Count = 0; Estimate = inf; Pre...

más de 5 años hace | 0

| aceptada

Respondida
How to create matrix with other matrixes by joining them?
hello here you are no loops res = zeros(2,2*size(a,2)); res(1,1:2:2*size(a,2)) = a; res(1,2:2:2*size(a,2)) = b; res(2,1:...

más de 5 años hace | 1

Respondida
Group data in specific potition (data redistribution)
hello back so I modified the code to respect empty sections - hope it helps ! % data1 = readcell('Input.xlsx'); data1 = ...

más de 5 años hace | 0

Respondida
Group data in specific potition (data redistribution)
Hello Ivan see below I added a 3rd line in your input file (just copied the first line) so that the output I generate can be...

más de 5 años hace | 0

Respondida
How to choose the right time and frequency vectors?
hello see example below : the notch filter simu is a bonus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%...

más de 5 años hace | 0

Respondida
temporal discretisation and time step value
hello some suggestions / corrections for your code do not forget to pay attention to units , otherwise you may have wrong pul...

más de 5 años hace | 0

| aceptada

Respondida
read .csv file, append content to another .csv file
hello this is it : data1 = readcell('file1.csv'); data2 = readcell('file2.csv'); [m,n] = size(data2); data_out = [data1;d...

más de 5 años hace | 1

| aceptada

Respondida
Calculate the rate of change from 5 minutes interval
hello Ann welcome back ! here the end of the code , I don't know if the rate is per second or per minute, you to decide %___...

más de 5 años hace | 1

| aceptada

Respondida
How to solve a data length error in the function "filtfilt"?
hello Lea your issue is related to the size of the input data filtfilt works only on "vertical" vectors so the first dimens...

más de 5 años hace | 0

Respondida
Power Spectrum with frequency as x-axis and db level as y-axis
hello from what I see , the x axis units is already in Hz to convert to dB scale , use this : y_dB = 20*log10(abs(y_fft)) ...

más de 5 años hace | 0

Respondida
how to plot 3d spectrogram from data in txt file
hi using Walter's code above + the attachement , you have all the tools to do this spectrogram analysis all the best

más de 5 años hace | 0

| aceptada

Respondida
creating wav files that contain sequences of pulse bursts
hello so this would be my suggestion , build on the existing code you can uncomment the window section f it appeals to you ...

más de 5 años hace | 0

Respondida
Calculate standard deviation of 5-minute for different time interval
hello Ann I slightly modified your code so the data are resampled with time increment of 5 minutes (or whatever value you're ...

más de 5 años hace | 0

| aceptada

Respondida
How to pick data with fix moving window ?
hello create index vector with delta = 5 : ind = min(data):5:max(data); and use it to extract the corresponding data value...

más de 5 años hace | 0

Respondida
How to convert S-parameters (MA format) to transfer function or impulse response?
hello IMHO, the best way is to find a FIR or IIR filter that mimics the magnitude / phase plot of the FRF - see invfreqz once...

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

Cargar más