Answered
Specter of a square signal(10Khz) at 10MHz frequency
hello there is a much faster method to generate a square signal (using square ) see demo below for signal generation and fft...

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 1

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

6 years ago | 1

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 0

Answered
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',"...

6 years ago | 0

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

6 years ago | 1

| accepted

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

6 years ago | 1

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 1

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 1

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 1

| accepted

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

6 years ago | 1

| accepted

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

6 years ago | 0

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

6 years ago | 0

Answered
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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

Load more