Respondida
How to plot these traces after a fixed interval?
hello this is it : C = randn(2000,30); data = filter(ones(1,100),1,C); ind = [5, 15, 25]; % your angles figure(1), w...

más de 5 años hace | 0

| aceptada

Respondida
FFT and time domain
hello see my example below I used nfft = 48 and 95% overlap to have best display of spectrograms clc clearvars %%%%%%%%...

más de 5 años hace | 0

Respondida
How to plot the “Response” and the “damping exponential function of the transient solution” on the same figure?
hello If you have the Signal Processing Tbx, envelope was made for you clear all;close all; clc; xss=0.01; wf=40; wn=2...

más de 5 años hace | 0

Respondida
I have multiple signal plots in one graph and i want to add their amplitudes to get one graph only
hello here you are : n1=1.45; n2=2.65; c=299792458; a=259*10^-9; b=142*10^-9; G=a+b; Lambda0=1.5*10^-6; Omega0=2*pi...

más de 5 años hace | 0

| aceptada

Respondida
Finding the time in which a specific value is reached in time-series data when peaks are found
hello I would suggest you use first a lowpass filter with long enought time constant (equivalent to moving average with buffe...

más de 5 años hace | 0

Respondida
How do I solve two different differential equations at the same time?
hello to do simple integration, you could start with cumtrapz to get the velocity data (from the force inputs) the time vecto...

más de 5 años hace | 1

Respondida
How to use output numbers as a vector.
hello see bleow : clear variable clc a=input('Please input a vector of integers : '); c=length(a); for d = unique(a(:)) ...

más de 5 años hace | 0

Respondida
How do I fix my x-axis ?
hello here you are : x = 0:1e-3:2; y1=8*cos(2*pi*x); y2=8*cos(19*pi*x).*exp(-x); figure(1),plot(x,y1,x,y2)

más de 5 años hace | 1

| aceptada

Respondida
Write legend on for loop plot
hello try this : X = [1.182, 1.6, 1.7, 1.8, 1.9, 2] NumberOfScenarios = [1, 2, 3] Scenarios = string(NumberOfScenarios); ...

más de 5 años hace | 1

| aceptada

Respondida
Find the value at exact location in a text file
hello hope this helps I used the attached function to load the data (FYI) % demo clc clearvars; % load data [outdat...

más de 5 años hace | 0

Respondida
ECG signal filtering problem
hello a little tool to do the fft anamysis (and notch filter demo included) clc clearvars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

más de 5 años hace | 1

| aceptada

Respondida
How analyze PMU data in the form of sinusoidal waveform?
hello I am not sure what your data represents, but FYI, this is a code to do spectral analysis (averaged fft and spectrogram) ...

más de 5 años hace | 1

| aceptada

Respondida
How to smooth a curve
hello your post is a bit rude, please take 10 seconds to say hello and introduce your topic; that would be a little more respe...

más de 5 años hace | 0

Respondida
How to resample frequency domain signal?
hello first code below : this is a script showing true averaging (even on complex Y data) over N samples your ac...

más de 5 años hace | 0

| aceptada

Respondida
Echo generation of FIR sytem
hello my code as example : infile='DirectGuitar.wav'; outfile='out_echo.wav'; % read the sample waveform [x,Fs] = audiore...

más de 5 años hace | 0

| aceptada

Respondida
Including Distortion with Audio Signal
hello this is an example how to use your function within a main code but I guess the implementation for the distortion is not...

más de 5 años hace | 0

Respondida
How can I offset time and displacement at the end of a defined time?
hello you can simply add 60 (or any value ) to your time vector (assuming you have defined one) : plot(time+60,data)

más de 5 años hace | 0

Respondida
Best filter for velocity noisy data
Suggestion of the day there are certainly other ways to implement a filter that action is function of signal amplitude (or dev...

más de 5 años hace | 0

| aceptada

Respondida
implements a digital notch filter to remove the frequency component at 1 Hz.
hello see example code below clc clearvars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%...

más de 5 años hace | 0

Respondida
how to shift a pcolor figure ?
yes for sure % non centered plot N = 21; X = (1:N); Y = (1:N); C = rand(N,N); figure(1),pcolor(X,Y,C) colormap(gray(2...

más de 5 años hace | 0

Respondida
Specgram zooms when sampling rate resampled to lower
Complete code for audio signal analysis clc clear all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%...

más de 5 años hace | 1

| aceptada

Respondida
Why does my FFT return all zeros for certain sound files?
Luke - see above again : I found where the issue is on the OP code - N = 2^12; j = 0:N-1; f = (Fs/N).*j; X = ff...

más de 5 años hace | 1

| aceptada

Respondida
Smoothing data by x axis values rather than cells
hello to resample all data to 200 m resolution (whatever your resolution is ), simply use interp1 : new_d = min(d1):200:max...

más de 5 años hace | 0

| aceptada

Respondida
Moving sum of 4 subsequent observatins
hello see example below (run it with 4 and not 5 samples averaging) : % dummy data data = rand(320,15); buffer = 5; % ...

más de 5 años hace | 0

Respondida
I want to call multiple files and plot them using a loop
hello attached a few examples - they are for excel / csv files but you can easily change the code for mat files (like : ... = ...

más de 5 años hace | 0

Respondida
How to convert from daily timestep to monthly average?
hello Elizabeth here you are : Daily_Data = load('example_data.mat'); Daily_Data = Daily_Data.MIKESHEver10calibrationDetaile...

más de 5 años hace | 0

| aceptada

Respondida
Unit of Amplitude After FFT Analysis
hello using fft requires some brainstorming about the scaling thats why i also compare my fft output amplitude to a know sin...

más de 5 años hace | 0

Respondida
Please help with plotting and for loops!
hello this is the typical situation when you forget to index the variable used to do the plot after the for loop just missing...

más de 5 años hace | 1

| aceptada

Respondida
Azimuthally average line plot to 2D image
Hello again Check this if it works for you. I had to divide y by 1000 so that x and y are in similar ranges (is one in mm and...

más de 5 años hace | 0

| aceptada

Respondida
optimizing vector variables with N vector
hello I suspect this is the intention (corrected code) : N=10; z = rand(1,2*N); % dummy data (length must be >= 2N r= mai...

más de 5 años hace | 0

| aceptada

Cargar más