Answered
De-noising of speech signal using IIR filter
First, use the fft or pspectrum function to see what the spectral content of the signal is. If the noise is band-limited (occup...

4 years ago | 1

Answered
How to change the relative scaling of my x-axis
See if the semilogx function produces the desired result.

4 years ago | 1

| accepted

Answered
I want to integrate this function
Use the integral function — x = 0:50; y = @(x) exp(-x./25).*sqrt((25+x)/(25-x)); int_y = integral(y,0,50) The cumtrapz (o...

4 years ago | 0

| accepted

Answered
What is the difference between strjoin and join?
The join function (introduced in R2016b) is primarily intended for use with the string data type, introduced at the same time. ...

4 years ago | 0

| accepted

Answered
Unrecognized function or variable 'helperDownloadData'. This error shows when I run my code
That call appears to be in the example Detect, Classify, and Track Vehicles Using Lidar so using it requires having the Lidar To...

4 years ago | 1

Answered
Plot legend and axis label does not display
Spaces are significant in name-value pair arguments, so ' Interperter ' will not be recognised. %% Sample points considering ...

4 years ago | 0

Answered
Put Zero Value randomly in wave function
Try something like this — %Sine wave freq=400; Amp=2; t_samp=1/8000; T=0.01; t=0:t_samp:T; y=Amp*sin(2*pi*freq*t); y(r...

4 years ago | 0

| accepted

Answered
plotting graph using symbolic equation
None of the variables are explicit functions of frequency. They must be functions of frequency and have all the other values de...

4 years ago | 0

Answered
Shuffle the rows and columns
Do exactly what you described — M = [1 2 3 4 ; -1 -2 -3 -4 ; 1 2 3 4 ; -1 -2 -3 -4] Ms = M([1 3 4 2],[3 2 4 1]) .

4 years ago | 2

| accepted

Answered
who does logical works
The assignment: x(mod(x,2)==0)=5*x(mod(x,2)==0) finds numbers tthat are evenly divisible by 2 (so the remainder after divisio...

4 years ago | 0

| accepted

Answered
How to save image of cqt (Constant-Q nonstationary Gabor transform) from KHz to Hz
Try something like this — load handel figure cqt(y,'SamplingFrequency',Fs) Ax = gca; ytv = Ax.YTick; Ax.YTickLabel = comp...

4 years ago | 0

| accepted

Answered
Can anyone help me out what does sign(rand-0.5) command mean
The ‘sign(rand-0.5)’ returns the sign (-1,0,1) of that result — for k = 1:10 r = rand X = sign(r-0.5) end .

4 years ago | 1

| accepted

Answered
How Do I Remove Scientific Notation From X/Y Axes on Plot
Perhaps something like this — x = logspace(-6, -2, 250); y = sin(2*pi*3*x/x(end)); figure semilogx(x, y) grid figur...

4 years ago | 0

Answered
mathematical basis of Polyarea calculation
To see how it works, run this — type polyarea Whatever you do, do not open it in the Editor in order to see the code! This r...

4 years ago | 0

| accepted

Answered
FFT gives wrong answer for a generating function
It is possible to get close to the desired result by ‘adjusting’ the fft arguments — n = 50; f = linspace(-pi, pi, n); % ...

4 years ago | 0

| accepted

Answered
Is there a built in function like MinPeakHeight but for maximum numbers?
Another option is the islocalmin function (introduced in R2017b).

4 years ago | 0

Answered
Sgolay filter is reducing the peal pulse too much.
Use a low-value order (I usually use 3) and experiment with different values for the frame length.

4 years ago | 0

| accepted

Answered
Symbolic Paramaters Not Supported in Nonpolynomial Equations
Solve it once, generate numeric functions, then evaluate the functions. % for t = 1:100 syms U_dot U W W_dot M_a theta ...

4 years ago | 0

Answered
I keep getting the solve stops prematurely for fsolve?
Possibly — % ------ Guess --> Range of AOA ------ % opts = optimoptions('fsolve', 'MaxIterations', 5E+3); ...

4 years ago | 1

Answered
Finding student t critical value...
@Sabina Yasmin — Your question implies that you do not have the tinv function. The t distribution and inverse t distributio...

4 years ago | 0

Answered
Creating a datetime variable - unconventionally
Using months instead of minutes — Date = {'200301'; '200306'; '200312'} DateDT = datetime(Date, 'InputFormat','yyyyMM') Date...

4 years ago | 0

| accepted

Answered
Implementation of the goertzel FFT
See if the goertzel function will do what you want. Also see DFT Estimation with the Goertzel Algorithm for an application ex...

4 years ago | 0

Answered
why does the output show % when i type fprintf('%%')
In the documentation section on formatSpec see the section on Text Before or After Formatting Operators.

4 years ago | 0

| accepted

Answered
How can I make plot lines different colors when solving PDE?
There are problems referenceing ‘u’ and ‘v’ since they are both (9x2001) matrices, so to be comkpatible with ‘x’ address the ro...

4 years ago | 0

| accepted

Answered
how to get the contour/shape of a representation in 2D?
Another approach — LD1 = load('x.mat'); x = LD1.x; LD2 = load('y.mat'); y = LD2.y; cntrd = mean([x(:) y(:)]); ...

4 years ago | 1

| accepted

Answered
How to select the column of matrix?
Try this — M = randn(10,5) % Create Matrix Mv = vecnorm(M) [mxMv,col] = max(Mv) Des...

4 years ago | 0

| accepted

Answered
Add grid lines onto the 3D mesh plot
Use the Surface Properties MeshStyle property — [X,Y,Z] = peaks(50); figure hs = surf(X,Y,Z); hs.MeshStyle = 'column'; ...

4 years ago | 0

Answered
Starting my x-axis values not from zero
‘Trying to start x-axis which is my current density(j) values from the value 7e-3. Can anyone help out with this.’ Probably n...

4 years ago | 0

Answered
How to plot all contour lines in one plot?
Specify them as a single levels vector — [X, Y, Z] = peaks(50); figure contour(X, Y, Z, [-4.34, -4.3, -4.2, -4.1, -4, -3, ...

4 years ago | 0

| accepted

Answered
how to floor time for each hour?
Try this — tv = {'12-Dec-2021 09:09:04' '12-Dec-2021 09:24:04' '12-Dec-2021 09:39:04' '12-Dec-2021 09:54:04'...

4 years ago | 0

| accepted

Load more