Answered
Approximating frequency with respect to time using Hilbert() is giving me very wrong/noisy graphs. Why?
The *|hilbert|* function is likely not going you give you the result you want. The <https://www.mathworks.com/help/signal/r...

9 years ago | 1

Answered
While calculating power spectral density it is showing an error , vector lengths must be same
I cannot run your code, however I believe I see the problem. First, delete this line: Nc(2:end-1) = 2*Nc(2:end-1); ...

9 years ago | 0

| accepted

Answered
how can i find a value that is bigger than 95% of the values in a given vector
Use the Statistics and Machine Learning Toolbox <https://www.mathworks.com/help/stats/prctile.html *|prctile|*> (link) function ...

9 years ago | 1

| accepted

Answered
How to access variables from another function?
Return the variables-of-interest as outputs: function nproduto = initial(hObject, eventdata, handles, varargin) nprod...

9 years ago | 1

Answered
Which intel processor is good for MATLAB programming?
<http://www.mathworks.com/support/sysreq/current_release/ *System Requirements for MATLAB*> <http://www.mathworks.com/product...

9 years ago | 0

Answered
Plot time of audio file in milliseconds
Try this: plot(t*1E+3, data); That converts seconds to milliseconds. The plot otherwise remains the same.

9 years ago | 0

| accepted

Answered
problem with Design a bandpass FIR digital fiters
*_‘what should I write in the specification frequency box’_* Steep transition regions create long |FIR| filters, so experimen...

9 years ago | 0

Answered
How to configure odeset options to get ode solve
Because you define your system of differential equations as: dxdt = [x(2); -2*g*sqrt(x(1)) + 2*(F)/(rho*A)]; after th...

9 years ago | 0

| accepted

Answered
How to create a vector with vaules based on a if statement
One option: L = [1;1;2;2]; % Layer type: 1=clay | 2=sand alpha = rand; Nm = rand; qs = rand(4,1); As ...

9 years ago | 0

| accepted

Answered
3D Plot from point to surfaces
I am not certain what you want. This should get you started: Ax=2:4:14; Ay=2:4:14; figure(1) for k1 = 1:...

9 years ago | 1

| accepted

Answered
Merging two 2D graphs (x axis divisions are different)
I am not certain what you want. See if one of these works for you: x1 = linspace(100, 250, 600); % ...

9 years ago | 0

| accepted

Answered
How do i plot a cylinder of raduis r with change in height at different x and y points along the circumference ?
Try this: N = 50; % Number Of ‘Facets’ Of Cylinder a = linspace(0, 2*pi, N); ...

9 years ago | 0

Answered
How to use xls in functions?
In your code, the headers (and other string information) will be in the *|‘txt’|* variable. The numeric values will be in the b...

9 years ago | 0

Answered
Can anyone explain how the phase angle should look like for a square pulse with pulse width 1 that has undergone FFT in matlab
The phase of a symmetric square pulse is uniformly zero, because the Fourier transform is purely real: syms w t FTpuls...

9 years ago | 0

| accepted

Answered
IIR and FIR Bandpass Filter Design Help (2.2kHz) from a .wav
You need to use a notch filter. See: <http://www.mathworks.com/help/signal/ug/remove-the-60-hz-hum-from-a-signal.html *Remove t...

9 years ago | 0

| accepted

Answered
how to divide an EEG signal into segments
See if the Signal Processing Toolbox buffer (link) function will do what you want. EDIT — (1 Nov 2022 at 11:50) The most bas...

9 years ago | 0

Answered
Plot a curve as a vertical 3D surface in MATLAB?
Try this: x = linspace(0, 2*pi, 50); % Independent Variable y = sin(x); ...

9 years ago | 1

| accepted

Answered
sensitivity analysis for nonlinear inventory model
The Jacobian of your model (partial derivatives with respect to each parameter) should provide you with the sensitivity function...

9 years ago | 1

Answered
What is the difference between observation and variable in case of pca() function?
From the documentation: * *|coeff = pca(X)|* returns the principal component coefficients, also known as loadings, for the *...

9 years ago | 0

| accepted

Answered
How to calculate the area which located between curve and x-axis?
Try this: X = [1427.18976 1427.21024 1427.23072 1427.2512 1427.27168 1427.29216 1427.31264 1427.33312 1427.3536 1427.37408...

9 years ago | 0

| accepted

Answered
How to combine overlapping audio?
The <https://www.mathworks.com/help/signal/ref/findsignal.html *|findsignal|*> (link) function could be helpful.

9 years ago | 0

Answered
Why cannot I plot my pressure to my volume?
You most likely have a variable named *|‘plot’|*. Run this from a script or your Command Window: which plot -all I...

9 years ago | 0

Answered
How do I plot signals as lines from 0 to I for given energy values?
See if the *|stairs|* plot will do what you want.

9 years ago | 0

| accepted

Answered
Using lsqcurvefit with ode45
I cannot figure out what you are doing. This runs, although the fit to the curve is not good and the parameters (and therefore ...

9 years ago | 0

Answered
Subtraction of rows in matrices
I do not know what you mean by ‘vectorize’. Regardless, use the *|diff|* funciton: dn=[1 2 4 5 6 7 7 3 5 6 7 8...

9 years ago | 0

Answered
How to call vector in matrix with condition?
Try this example: A = [randi(9, 6, 3) [5 5 9 1 1 1]']; Idx1 = any(A(:,4) == [9 5], 2); B1 = A(Idx1, 1:3); Idx2 = ...

9 years ago | 1

Answered
Removal of spike at beginning of filtered signal time series plot
_Guessing_ here, since I don’t have your data (or even a picture of it). See if the Signal Processing Toolbox *|findpeaks|*...

9 years ago | 0

Answered
Stop some outputs of a function
*_‘I just want to outputs B and I and not all of them , is it possible to do it?’_* Yes. Call it as: [ B,~,~,I ] = mag...

9 years ago | 1

| accepted

Answered
how to determine transfer function using .csv file in matlab?
See the documentation and examples in the <https://www.mathworks.com/help/ident/index.html *System Identification Toolbox*> (lin...

9 years ago | 0

Answered
Using 'default' as default answer in inputdlg.
Using *|'default'|* (with a lower-case *|‘d’|*) appears to be prohibited. When I experimented with it, *|'Default'|* and *|'DEF...

9 years ago | 0

Load more