Answered
Playing sound using 4 channels or converting 4 channels to two
Hello Alex seems to me that none of your codes does actually mix the two songs, here you simply create a 4 channels audio fro...

25 días ago | 0

| accepted

Answered
how to control amplitude of step in code
hello simply multiply the result of the (normalized) step (input amplitude = 1) by the actual / desired input amplitude inp...

25 días ago | 0

Answered
how to calculate RMS of excel sheet having multiple channel
hello see demo code below with attached excel file I assumed the data are column oriented the rms values are stored in arr...

alrededor de 1 mes ago | 0

| accepted

Answered
Define main frequencies of accelerometer signals
hello Sergio if you are interested in the low frequency range , my liitle code can help you the quantization noise is quit...

alrededor de 1 mes ago | 0

| accepted

Answered
how to generate the fowlloing data file based on the original data format?
hellooo and welcome back !! I think I recognize a bit this code .... see my little mods below : clc clearvars S = dir(...

alrededor de 1 mes ago | 0

| accepted

Answered
I'm starting in Matlab and I have to code centred loops spreading in different directions. Just like the picture I added. Any guidance on where to start would be appreciated.
hello try this circles_radius = 1; radius_noise_amplitude = 0.05; center_radius = 2; center_radius_noise_amplit...

alrededor de 1 mes ago | 0

Answered
How to create linear phase filters for filter bank?
hello the phase roll rate must be constant like in the example below %% define filters fs = 10000; freq = linspace(100,(f...

alrededor de 1 mes ago | 0

Answered
Remove simultaneously several substrings in a string
hello try this A = "159 (51,1%) 13 (4,2%) 139 (44,7%)"; B = split(A,' '); B(contains(B,'(')) = []; B = join(B,' ');

alrededor de 1 mes ago | 0

| accepted

Answered
using logical indexing to find events
hello there is a very simple answer using interp1 t=0:0.01:10; x=sin(2*pi*t)+t/10; y=sin(2*pi*t+pi/4); tevent=[5.3,3.2,8.7,...

alrededor de 1 mes ago | 1

| accepted

Answered
Trouble fitting a curve using polyfit and polyval
hello see example below : clc clearvars % data x = (0:100); b = 1.5; a = 2.35; y = a + b*x + 3*randn(size(x)); %...

alrededor de 1 mes ago | 0

Answered
Plotting only few indices over time series
hello my 2 cents suggestion : n = 1:500; x = n.*(1+rand(size(n))); ind = [28,300,349,388,389]; plot(n,x,'b',n(ind),x(in...

alrededor de 1 mes ago | 0

| accepted

Answered
How to make a piecewise function without using syms?
hello Brianna try this (using logical arrays) n = 0:20; x = zeros(size(n)); % cond 3 by default % cond 1 ind1 = (0<=n & n...

alrededor de 1 mes ago | 0

Answered
Comparing curves to an original signal
hello again so the yellow curve can be shifted to match the purple one by using a linear equation like y2_shifted = = y2*a+...

alrededor de 1 mes ago | 0

Answered
How to get polynomial equation of polyfit?
hello my suggestion below : the equation is given by the string eqn code : clc; clear; y = [4.0432,4.1073,4.0899,4....

alrededor de 2 meses ago | 1

| accepted

Answered
How can I find the Transfer Function having Magnitude(dB), Phase(degree) and Frequency(Hz)?
hello I tried a few options , IIR or FIR filters fit. As the phase plot shows , there is a quite significant phase roll rate...

alrededor de 2 meses ago | 1

| accepted

Answered
Perform cross co-relation to find best fit
hello the two signals have a slightly (but constant) slopes , so the best estimation of time delta is measured at half the amp...

alrededor de 2 meses ago | 0

Answered
Creating events from continuous data
hello I took only the central portion of your code and applied my recipe - see below had to do some preliminary data process...

alrededor de 2 meses ago | 0

Answered
How to generate barplot like this on a given data?
hello example of horizontal bar plot clc clearvars close all data_co2 = [.142 .156 .191 .251 0.5 0.86 2.2 4 8.3]; data...

alrededor de 2 meses ago | 0

Answered
How to write a function that implements an LTI filter using Direct Form 2?
hello see my example below %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% data ...

alrededor de 2 meses ago | 0

Answered
Filtering noise from an audio signal
hello my recommendation : define the filters after you have analysed the data (see the spectrogram plot : most of the noise en...

alrededor de 2 meses ago | 0

Answered
Access data from table element
hello Giulia try this clc clearvars s = dir('00*.txt') numfiles = numel(s); for n=1:numfiles filename = s(n).nam...

alrededor de 2 meses ago | 0

Answered
Not sure whats wrong with the values in this plot
hello Seb I revisited your code and found the main bug . In your equations the term that computes the rotor acceleration ( = n...

alrededor de 2 meses ago | 2

| accepted

Answered
i have a code for a .wav file which then outputs 3 graphs, but now i want to edit the code and apply three filters (LPF,HPF,BPF) how can i do that and also output the TF?
hello again this is the code with the FIR filters implemented hope it helps ! % LPF cutoff frequency 3 KHz % BPF cutof...

alrededor de 2 meses ago | 0

| accepted

Answered
Intersection between fittetfunction and line
hello Luis so this my little demo for intersection - the crossing point coordinates are obtained by linear interpolation, so t...

alrededor de 2 meses ago | 1

| accepted

Answered
Filtering out noise or eigenfrequency in acceleration data
hello Lisa do not be desperate ! we are here to help I used your data in my favourite code for noise and vibration analysis....

alrededor de 2 meses ago | 0

| accepted

Answered
How to export .mat file to excel different sheets
hello yes , like this : MAT = rand(10,100); [m,n] = size(MAT); for ci = 1:n xlswrite('sampleData.xlsx', MAT(:,ci),...

alrededor de 2 meses ago | 0

| accepted

Answered
How to perform calc. on the selected part of curve and then reassemble it with rest part of curve in MATLAB?
hello see my little demo below I extracted the portion of data of interest - you can do computation or smoothing and put bac...

alrededor de 2 meses ago | 1

| accepted

Answered
Unsure of what is happening in for loop
hello I don't get why the while loop is for ? The for loop by itself will generate this result delta1 = -0.7151 -...

alrededor de 2 meses ago | 0

| accepted

Answered
Using a filter difference equation in a for loop to filter a .wav file within the loop
hello see example below - notice b are usually coeffcient names for numerator so they are used for the x (input) , wheras a co...

alrededor de 2 meses ago | 0

Answered
Help fixing code to do loop aswell as how to show start/end times of spike as seen on plot.
hello Erick I have implemented a new portion of code to define the two crossing points with maximal time accuracy (by linear i...

alrededor de 2 meses ago | 0

Load more