Respondida
How can I simulate the tension on the sensor?
hello as far as I can see, the Fb and Fg forces are given, only Fc is unknown. So you have to generate a range of values for F...

más de 5 años hace | 0

| aceptada

Respondida
Error: "Dimension argument must be a positive integer scalar within indexing range" using trapz
hello Jacqueline with the given limits xi=5.67; xf=14.20; , idl contains only one valid x value , so trapz will throw an error,...

más de 5 años hace | 0

| aceptada

Respondida
ODE to solve for density
hello as far as i can tell , the second plot is simply the derivative given by you and not the solution of the ODE hx = linsp...

más de 5 años hace | 0

| aceptada

Respondida
How to write for or while loop along with indexing?
hello I modified a bit your code so that it will generate y and z cell arrays whatever the number of years. No manual code mod...

más de 5 años hace | 0

| aceptada

Respondida
How to superimpose a pulse (like partial discharge pulse ) over a pure sine wave signal
hello this is a code to generate a gaussian pulse you can add this to your sine wave f0 = 2e3; Var_Sq = 1; Fs = 1e5; dt ...

más de 5 años hace | 0

Respondida
how do I take the matrix A and a vector with the indexes of the rows to be considered, and takes out a vector of the mean values?
hello title and question are not consistent: odd rows or odd columns ? result for odd columns : out = mean(A(:,1:2:end),1...

más de 5 años hace | 0

Respondida
How to plot quantized signal in MATLAB?
hello this little code snipset to illustrate what is sampling quantization is simply to round the y values to the nearest 2^...

más de 5 años hace | 0

Respondida
smooth the surf or pcolor graph
hello looking first at your data distribution (histogram(Z)) I noticed 90% of the data is between 15 and 300 , very few sampl...

más de 5 años hace | 0

| aceptada

Respondida
How to find corresponding frequencies after viewing amplitude in descending order?
hello I modifed a bit your code and tested it with a two tone signal see the line with peak_fr_sorted_values clc %% dumm...

más de 5 años hace | 0

| aceptada

Respondida
2d gaussian function
hello Lucy assuming your values are stored in A vector, use reshape to get the 848x480 pixels in matrix B : B = reshape(A,848...

más de 5 años hace | 0

Respondida
how to plot bar overall 1/3 octave by Poctave() as show below(bar color red)?
hello see example below : Fs = 44.1E3; xInp = rand(1,2^16); % Compute the octave spectrum of the same signal, but th...

más de 5 años hace | 0

| aceptada

Respondida
Error when using sgolayfilt
hello Anna are you sure P1 is type double ? the code works on my side with dummy rand input P1 = randn(1112992,1); orde...

más de 5 años hace | 0

| aceptada

Respondida
Dividing array to subarrays based on threshold
this is my 2 cent suggestion A=[0 1 2 3 4 3 2 1 0 1 1 2 3 7 8 4 3 2 1 0 1 2 4 8 9 6 3 2 1]; threshold = 2; ind = find(A>=t...

más de 5 años hace | 0

Respondida
How can I use loop to produce multiple graphs?
hello Daphne I modified a bit your code - see the comments only issue for me in line : Monthly_Temp = accumarray(Hindd_ck,...

más de 5 años hace | 0

| aceptada

Respondida
Excursion of loudspeaker model is drifting massivly
HELLO I think I have an idea of where the problem lies... I first had a look how the non linear BL and suspension force equati...

más de 5 años hace | 0

| aceptada

Respondida
How to smooth plot without affecting the data. While I used smooth in plots, the data was reduced at some points.
hello to have a smoothed curved that goes closer to your input points, you have to interpolate first to have more data points,...

más de 5 años hace | 0

| aceptada

Respondida
I get my peaks at the wrong frequency and with the wrong amplitude.
hello Anna look at my fft function at the end of my code clc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%...

más de 5 años hace | 0

| aceptada

Respondida
Non-linear Curve Fitting Issue with Experimental Data
HELLO I don't have the CF Toolbox but I could manage to get a reasonnable good fit by using 4th ordre polynomial fit on log lo...

más de 5 años hace | 1

| aceptada

Respondida
Bandpass filter vs sequential high and lowpass filter in Matlab: weird difference
I prefer this code ... faster and I know what filters I use i changed the input signal random + negative constant (to mimic you...

más de 5 años hace | 0

| aceptada

Respondida
How to remove the mean from a data
hello you can simply do a = a - mean(a); NB : you can also use the detrend function

más de 5 años hace | 0

| aceptada

Respondida
1/f amplitude spectrum and slope
hello Mercede Slightly modified code, simply give it a valid wav file name - it works as can be seen below - or where is your...

más de 5 años hace | 0

| aceptada

Respondida
Creating a for loop that generates sound when given mean and standard deviation of frequency
hello Isabelle chek this ... you have now four wave files in your directory with different frequency beeps signals hope it hel...

más de 5 años hace | 0

| aceptada

Respondida
50 Hz interference and noise reduction from ECG.
hello If you want only to remove the 50 Hz tone , use a notch filter as shown in example below. I used your data and guessed t...

más de 5 años hace | 0

| aceptada

Respondida
spectrograme using STFT(DSP)
hello I was not comfortable with how you defined the basics constants in your code , so I rewrote it my way - I believe more r...

más de 5 años hace | 0

| aceptada

Respondida
ERROR WHILE UPLOADING CSV FILE MANUALLY(BY IMPORT METHOD)
hello no issue found with your file . Could load it with readtable T = readtable('feed.csv'); T = 12×3 table ...

más de 5 años hace | 0

Respondida
Average of every n values in a matrix.
hello see 2 examples below , without and with overlapping sections % dummy data data = rand(320,15); buffer = 5; % nb of...

más de 5 años hace | 0

| aceptada

Respondida
Remove leading blank space from specific lines in .txt files
hello my suggestion below , tested on following text (I added a last section for my testing purposes) Start; ...

más de 5 años hace | 0

| aceptada

Respondida
How to create separate tables from a data set
hello here below my suggestion to split the large csv file into smaller txt files they may be smarter use of regexp but this...

más de 5 años hace | 1

Respondida
Concatenated Segmentation using Overlapping Windows
hello example below : % dummy data data = rand(80,5); shift = 5; % nb of samples for averaging buffer = 50; % nb o...

más de 5 años hace | 1

Respondida
How to circ_mean every 5 elements?
hello demo code below : % dummy data data = rand(320,15); buffer = 5; % nb of samples for averaging % zero overlap ...

más de 5 años hace | 0

| aceptada

Cargar más