Réponse apportée
How to add low frequency noise to the signal?
hello this is a simple demo showing a sine signal corrupted by a low frequency noise . You can adjust the parameters to your o...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Reading multiple non-sequential *.txt files containing both text and numbers
hello this is an example that shows how I could read one then multiple text files (and applying a natural name sorting) you ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
pulse train with gaussian pulses in an irregular interval
hello a quick and dirty demo , not using gauspuls but that could be easily done also clc clearvars f0 = 50; % pulse freq...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Time Series Partitioning of EMG data
hello see example below : samples = 40000; buffer = 2000; data = rand(samples,1)+10*((1:samples)/samples)'; % noisy ramp...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
how can I know the sence of voice that was recorded in a special place?
hello I interpret your request about how to analyse your records - assuming you can use audioread from matlab , here 's a cod...

presque 5 ans il y a | 0

Réponse apportée
How to save multiple output?
hello I would recommend to use structures (indexed) like in this example a =randperm(18); b=reshape(a,9,2); vals=b; [m,n...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
use regexp to extract index
hello my 2 cents suggestion using readlines and working on strings : this simple code can be expanded / modified according t...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How to update title of plot without it "wiggling"
hello my 2 cents suggestion : plot(rand(1,10),rand(1,10)) t = repmat([0 10],1,5); for k = 1:length(t) above10= t(k) -...

presque 5 ans il y a | 0

Réponse apportée
Determine less than in for loop
hello does that reflect what you wanted to do ? clc clearvars % x = round(100*rand(1,10)); x = [11 96 0 77 ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
read a .txt file
hello have you tried to work with tables - using readtable ? filename = '0-3000.txt'; T = readtable(filename); C = table2c...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Error while plotting the surface
hello you need to create a grid from the 1D array x and y . This is done via meshgrid code : clc clearvars x = 0:1:100;...

presque 5 ans il y a | 0

Réponse apportée
for loop stack the data
hello my suggestion if M is (like here) a 1D array so the col saved is always one; this can be removed from the code if ne...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How to set level values of a variable in a nc file
hello again3 so I tried to a few things to get the min and max points of the data and display them (the big crosses) I am stil...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How to add correlation factor to the plot?
hello see my little example below (your code does not show how you get the linear model fit data) clc clearvars % dummy...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
read special cell in excel file
hello again so here a small code to extract the lines where the 2 numbers in row 2 and row 3 are below a given threshold. FYI ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Finding end of words in signal
hello you should first compute the envelope of your signal (for example using the function of same name envelope) simply do a...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How to adapt a function to a change of two points?
hello Daniel this is my suggestion - a simple anamorphosis of the curve along the vertical axis (= a vertical shift and a multi...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How do I create array of a function with for loop?
hello it's not the best coding practice, but it works ... clc clearvars % dummy data X1 = rand([424,412]); X2 = rand([4...

presque 5 ans il y a | 1

Réponse apportée
How to plot power of wavelet transform.
hello again I simply run your code using the appropriate package the package and results are in the zip attached # Cross...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
how to receive power values in and out the cone of influence in wavelet transform.
hello I assume this is related to your previous post How to plot power of wavelet transform. - MATLAB Answers - MATLAB Centr...

presque 5 ans il y a | 0

Réponse apportée
The graphs of position, velocity and acceleration are wrong.
hello I didn't find any mistake in your original equations , but I am lazy and I found your code quite long and complicated......

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Saving multiple plots into one folder with the specified figure name in code to jpg form
hello why not simply add this line of code after each figure : adjust the resolution to your needs (here 140 DPI) print('-dj...

presque 5 ans il y a | 0

Réponse apportée
Attempting to detrend and remove noise from surface roughness data
hello my prefered function for smoothing data is smoothdata , but there are other options example below : clc close all ...

presque 5 ans il y a | 0

Réponse apportée
Generating some sounds and present all of the sound randomly to left and right ear
hello again we need to clarify a bit the data you generate (see my comment above) , but basically this is your code a bit modif...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How to turn a code into a function while one of the input is string
hello Reza see my suggestion below A is now a cell array I added a structure param to easily pass the various coefficients ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
I'm trying to use loop function and want to cut my code short, and my end goal is to compare idle components from 7 idle machines, from an excel data, I'm not sure how to do
hello as far as I understand your request , this is a modified code (see below) i splitted a main section and a subfunction s...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Index exceeding number of array elements on second iteration of loop
hello your variables are not indexed , so this is no surprise that it will fail at the second iteration code should be , ass...

presque 5 ans il y a | 0

Réponse apportée
Extracting specific data from multiple excel files and create a single matrix from those
hello this is one example if you want to work out the entire folder I assumed it would be numeric data so I used importdata (...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
plotting noise spectrum of the data
hello Nirala this is my go to fft analysis code for signals it does fft with averaging and spectrograms you can modify the ...

presque 5 ans il y a | 0

Réponse apportée
how to get Y Value from a plot having 3 curves or more as shown in figure?
hello you can try this code clc clearvars % dummy data n=100; x=(0:n-1)/n; y1 = 3*sin(1.5*x)+ 0.01*randn(1,n); y2 =...

presque 5 ans il y a | 0

Charger plus