Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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,...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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^...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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,...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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,...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 %%%%%%%%%%%...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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; ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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 ...

plus de 5 ans il y a | 0

| A accepté

Charger plus