Answered
Help turning spectral analysis output into time variables
You do not provide enough information as to the data you have and the information you want from your data. Consider using the...

6 years ago | 0

Answered
how to determine the number of poles and zeros in Fourier transform
It is not possible to determine that with any certainty from the Fourier transform, because the Fourier transform by definition ...

6 years ago | 0

| accepted

Answered
Fill in matrix using nested loop
I am not certain what you want to do. Try this: Cap = 10; xcrit = 3; xx = Cap; yy = Cap; xyprob = ones(xx,yy)*0.1; %pro...

6 years ago | 1

| accepted

Answered
fsurf with symbolic variables
The MATLAB plot functions do not plot imaginary numbers. Try this: hold on for ie = 1:3 fsurf(real(eig0(ie)),[0,2*pi,...

6 years ago | 1

| accepted

Answered
positive zero crossing of a speech signal
Try this: t = linspace(0, 1, 150); % Create Data s = sin(2*pi*t*5); ...

6 years ago | 0

Answered
How to get transfer function from a bode plot with my data?
Add to your posted code: sys=tfest(gfr,3); since this gives a more accurate result, and then: [poles,zeros] = pzmap(sys) ...

6 years ago | 0

Answered
Solving coupled ODE (chemical kinetic)
It is difficult for me to understand what you are doing. I assume that ‘x(1)’ ... ‘x(9)’ are the parameters that you are inte...

6 years ago | 0

Answered
How can I solve this ?!
Think about it. The DC component is defined as 0 Hz, so what kind of filter would pass everything except the signal at 0 Hz? ...

6 years ago | 0

Answered
How to transform categorical features of a data set into numbers?
Here is one way to create a numeric representation for each category: C = {'tcp' 'ftp_data' 'SF' '...

6 years ago | 0

| accepted

Answered
retrieve phase information using 'pspectrum'
If you use the bandpass filter approach in digital signal related question(fft,pspectrum) you can easily recover the phase infor...

6 years ago | 0

| accepted

Answered
Solution to 2nd order ode containing time varying coeficients using ode45
It is not possible to run yoiur code without ‘AA.xlsx’, however one problem is obvious. The ‘P2’ assignment must return only ...

6 years ago | 0

Answered
Number of peaks per interval
One approach: t_pc = [ 1 1 2 2 3 1 4 2 6 3 8 2]; ...

6 years ago | 0

| accepted

Answered
How can ı solve this constraint optimization problem?
I get the feeling that this is likely homework. It would likely be easiest to use the fmincon function, although there are se...

6 years ago | 1

Answered
How to solve for a kinetic model system with confidence intervals
You are estimating 6 parameters although you have only 5 data sets. It is not possible to estimate unique parmeters when the ...

6 years ago | 0

Answered
How to compute control system's performance parameters?
You are not calling stepinfo correctlly. stepinfo(p) produces: ans = struct with fields: RiseTime: 4.414...

6 years ago | 1

| accepted

Answered
Using interp3 pull information from a table
That is going to be an ambitious project! It might be easier to contact the airplane manufacturer to see if a set of equations ...

6 years ago | 0

Answered
Why am I getting this error? 'Unrecognized function or variable 'poly2str'.'
I first tried poly2sym, and although it works, it does not print out correctly with anything I tried. (It prints as 3*x + x^2 +...

6 years ago | 0

| accepted

Answered
how to create regular interval date with time stamp?
Try this: Timestamp = datetime([2019 08 14 0 0 0]) : minutes(15) : datetime([2020 06 08 23 45 00]); Timestamp.Format = 'M/d/y...

6 years ago | 1

| accepted

Answered
Band Pass Filter from audiorecord
Use the bandpass function (R2018a and later). It is best to use this with the known sampling frequency (so using audioread rath...

6 years ago | 0

Answered
Solve equation that has a complex subexpression
Solving for the tangent of the phase angle, rather than using the arctangent of the transfer function, appears to produce the co...

6 years ago | 1

| accepted

Answered
Vibration Analysis FFT - Cut off frequency
A FIR ‘comb’ filter is perfect for this sort of problem! The problem with IIR filters (such as the Butterworth design) is that ...

6 years ago | 0

| accepted

Answered
Linear line, need it to curve
I have absolutely no idea what you are doing. Note that ‘ri’ and ‘ro’ are scalars in your code, so the appropriate result are...

6 years ago | 0

Answered
I can't read .txt using importdata
You have created your own script and named it ‘importdata.m’. Name your script file something else, such as ‘myImportData.m’ or...

6 years ago | 0

| accepted

Answered
How to find a variable in a function that mostly match a set of data points
First, I would experiment with fminsearch, since it uses a derivative-free approach. With one parameter, this should not be dif...

6 years ago | 0

| accepted

Answered
Find the dip in the curve
That is likely going to be a significant challenge for any algorithm. See if the ischange function (R2017b and later) can do ...

6 years ago | 0

Answered
Solving several ODEs in ONE m-file
See the documentation section on Passing Extra Parameters Changing ‘n_t’ to an anonymous function: n_t = @(t,n,x) A*(x*n+...

6 years ago | 0

| accepted

Answered
How can I combine a file name together with a filename, sprintF
Use square brackets to horizontally concatenate the various parts of the argument to ‘spm_eeg_load’: D = spm_eeg_load(['filena...

6 years ago | 0

| accepted

Answered
how to find FIR filter specs from coefficients
I assume your filter is a discrete (digital) filter, not a continuous filter. Probably the easiest would be to use the Signal...

6 years ago | 0

Answered
Error using step function. Not enough input arguments. Please help me solve this error in the following code. I need to find the step response of the the following function but the error of not enough input arguments is showing up
Right idea, wrong Toolbox. Try this: s = tf('s'); K=1 Ga=10/(s+5); Gp=0.1/(s*(s+1)); Gc=K; g=Ga*Gp*Gc; figure step...

6 years ago | 0

| accepted

Answered
How to calculate the sum of particular row in a matrix??
To sum across a row, specify dimension 2: B= sum(A(104, 25:75),2) That should do what you want.

6 years ago | 2

| accepted

Load more