Answered
I want to remove 50Hz noise using fir notch filter in ECG signal
That is straightforward — Fs = 1000; % Use Correct Sampling Frequ...

8 días ago | 0

Answered
Using Findpeaks to plot on a scatter plot and return the peak coordinates
I have not run the code, however I believe the scatter call used to plot the peaks has the arguments reversed. Try this inste...

9 días ago | 0

| accepted

Answered
Learning how to use functions
One problem is that there needs to be a multiplication operator between ‘30’ and ‘exp(6)’. The other problem is that the data...

9 días ago | 0

| accepted

Answered
code of z transform for kroneckerDelta
It works correctly in R2021b — syms n x(n)=kroneckerDelta(n-1,0) d=ztrans(x(n)) Perhaps an upgrade is in order? .

9 días ago | 0

Answered
How do you use ode45( ) when the equation is not in dy/dt form?
Since the equation as written involves the second derivative, it is also necessary to define the first derivative as a separate ...

9 días ago | 0

Answered
How can I remove lines connecting markers?
I am not certain what the problem actually is. One option is instead of plotting lines (the default for the plot function), s...

9 días ago | 0

| accepted

Answered
Index in position 1 exceeds array bounds (must not exceed 1)?
There must be something interfering with the function, since the code runs correctly here — Y=[1 -3 5 -9; 2 -1 -3 19;3 1 4 -...

9 días ago | 0

| accepted

Answered
how to separate an audio file based on different speakers
This is called Signal separation, blind source separation, and other terms. There are several ways to do it, one being independ...

10 días ago | 0

Answered
How to calculate energy of the signal at a specific frequency after applying FFT
The energy is the amplitude (so with the fft function, since it produces peaks of half amplitude in the negative and positive fr...

10 días ago | 0

| accepted

Answered
How to get rid of certain xticklabels?
‘Namely, I would like to have xticklabels as [1, 2, 4, 8, 16, 28, 32].’ It does exactly that when I plot it using the online ...

10 días ago | 0

Answered
Trying to find FIR filter coefficients
The ‘b’ vector are the coefficients, however specifying a sampling frequency of the signal the filter is designed to work with w...

10 días ago | 0

Answered
Help needed plotting very simple equation
It looks like that because only part of the function is visible in that plot. A ‘zoomed in’ part of the plot reveals it to be...

10 días ago | 1

| accepted

Answered
Creation of a legend of a graph with a for loop
The problem description is a bit difficult to interpret, however there are at least two possible solutions (if I interpret it co...

10 días ago | 0

| accepted

Answered
How to fix symbolic errors
The problem is in ‘line 31’ and I suspect the reason is that ‘B_xy’ is initialised as a double array. I have no idea what the...

10 días ago | 0

Answered
I have a problem with interpolation.
I have no idea what the data are or the code is doing. The scatteredInterpolant function would be my first recommendation, and ...

10 días ago | 0

Answered
Plot time on x-axis with certain intervals
Try something like this — tdr = duration(minutes(1:250000)); tdt = datetime([2021 01 01])+tdr; % Q1 = t(1435:1445) y = si...

10 días ago | 0

| accepted

Answered
How do I color a scatterplot?
Try this — x1 = 1:10; y1 = rand(size(x1)); x2 = 5:15; y2 = rand(size(x2))+0.5; figure scatter(x1, y1, 50, 'dr', 'fill...

10 días ago | 0

| accepted

Answered
fminsearch with known datas
Try this — % % % f=b*(((c1.*a1.*xin)-(c2.*a2.*xout))/(1+c1.*a1+c2.*a2)); % % % PARMETER MAPPING: c1 = p(1), c2 = p(2), b ...

10 días ago | 0

| accepted

Answered
Vectors must be the same length
I can’t run the code, however I believe the problem is with the legth of ‘w’ (since the call that threw that error is not stated...

11 días ago | 0

Answered
How to apply a filter to a signal?
I do not understand the reason that the Control System Toolbox is being used for signal processing. I would instead use the S...

11 días ago | 0

| accepted

Answered
Problem with installing matlab
Please Contact Support for the most reliable help for installation problems. The installer should create a desktop icon (at l...

11 días ago | 0

Answered
Need help to solve Complex Demodulation problem
‘My problem is -- after low pass filtering amplitude of the demodulated signal (19) becomes 2 times higher than original signal ...

11 días ago | 0

Answered
Plot points with different colors based on another array
Yes. x = rand(100,1); y = rand(100,1); intensity = randi(99,100,1); figure scatter(x, y, 50, intensity, '+') grid c...

11 días ago | 1

| accepted

Answered
Combine 2 matrices into a single column matrix
Yes. A = randi(9,5,1) B = randi(9,6,1) Out = [A; B] EDIT — See the documentation section on MATLAB Operators and Special ...

11 días ago | 0

| accepted

Answered
Curve fitting with custom function
It would help to have the data. I would use the fitnlm function for this — shearRate = logspace(-3, 4, 100); ...

11 días ago | 0

| accepted

Answered
sort and group vectors in a matrix
This is a bit confusing. I would use the pdist2 function for this — x = rand(1,5); y = rand(10,5); X = x(3:5) Y = y(:,...

11 días ago | 0

Answered
I am getting error in this program. Please suggest the corrections.
First, save the function as ‘graph_prog.m’ (note underscore). If I remember correctly, MATLAB .m file names cannot include spac...

11 días ago | 0

| accepted

Answered
I would like to see the spectrogram of x=cos(-250*pi*t^2) for 0<t<2s. How do I plot the spectrogram ( f on y axis, time on x axis)?t = [0,0.1,2]; % Intervall for t y = cos(-2
The frequency of the sine curve is 125 Hz, however the sampling frequency of ‘t’ is 10 Hz. This leads to asliasing and unfortun...

11 días ago | 0

| accepted

Answered
Filling in gaps of missing data with a time series
Change the table to a timetable (table2timetable), then use retime and the 'nearest' method. .

11 días ago | 0

| accepted

Answered
How can I use a logical array to remove and replace values in a corresponding data array?
See if the fillmissing funciton produces the desired result — TF = [0 0 0 0 0 0 0 0 1 0 1...

11 días ago | 0

| accepted

Load more