Réponse apportée
For spectroscopic analysis is it better to use a fft, a spectrogram (short Fourier transform), or a discrete Fourier transform?
The FFT, implemented in Matlab by the fft() function, is just an algorithm for computing the Discrete Fourier Transform (DFT) of...

plus de 4 ans il y a | 0

Réponse apportée
Replacing symbolic subexpression with unspecified arguments
Not 100% clear on the question. Maybe this? syms a1 a2 a3 a4 x1 x2 x3 x4 syms a x y(a,x) = sin(a * sin(x)) y(a2,x2)

plus de 4 ans il y a | 1

Réponse apportée
Incorrect Frequency response from Transfer Function
The frequency input to freqs is in rad/sec. If you want to match the correct output, the code will at least need to be: whz = ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to determine the transmittance of a closed system using symbolic calculations?
Correct that feedback(), tf() and Control System Toolbox functions in general don't work with sym or symfun objects. Within the ...

plus de 4 ans il y a | 0

Réponse apportée
FFT gives wrong answer for a generating function
Define the function to evaluate f(theta) ffunc = @(theta) (theta.^4 + 1); % only valid between -pi and pi, zero otherwise Defi...

plus de 4 ans il y a | 0

Réponse apportée
Transfer function error help
The denominator is missing a * multiplication. Maybe you meant: [L*C*(R1+R2)*(R1*R2*C + L) R1] Note the * between the two t...

plus de 4 ans il y a | 0

Réponse apportée
How to calculate the norm of the transfer function in frequency domain?
Check out doc tf to learn how to create a transfer function (tf) object. Once you have G(s) defined as a tf object use bode() ...

plus de 4 ans il y a | 1

Réponse apportée
Spectra replica after sampling a continuous time signal
Here is an illustration using a different signal; maybe it will provide some insight into your specific problem. Define a conti...

plus de 4 ans il y a | 1

Réponse apportée
How to find the area under part of the histogram
Replace sum() with cumsum() and then subtract to get the area between two bins of interest? doc cumsum

plus de 4 ans il y a | 0

Réponse apportée
What is wrong with my Code? (Fast Fourier Transform)
The problem can be solved symbolically or numerically. First symbolically. % define duration and frequency Td = 0.002; fc = ...

plus de 4 ans il y a | 0

Réponse apportée
How to find IDTFT of an array in matlab?
As @Matt J noted, you can specify the frequency vector that freqz should use to cover whatever frequencies are desired. Or freq...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Differential Equation Solution incorrect with matlab compared to maple
The Maple solution does include imaginary terms, like 5*pi*1i/3, but we'll show that those terms cancel out on the interval of i...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Using fft to plot frequency spectrum of sum of rectangular pulses
The code below illustrates the analysis for one component of the signal. It can be adapted to include both components of the sig...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Integral not being computed
Simplify normDf before applying int(). Don't know why int() doesn't do this on its own syms t assume(t, "real") f1 = 3*t-t*t...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Simulink vector index assignment / re-ordering using Selector block
Normally, you can put any Matlab expression in a block parameter dialog. So if u_pos and du_pos are defined in a workspace that...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
why my fft does not match my convolution ?
The DFT of the product of two finite duration sequences is the normalized circular convolution of their DFTs. For example: x = ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How do I get time-domain data for Control System Internal AnalysisPoints
I think this function can find the model from any input to any output, including Analysis Points doc getIOTransfer

plus de 4 ans il y a | 0

Réponse apportée
Trying to plot a frequency response (magnitude and angle) using the equation of a forced vibration
According to the problem statement, the time increment should be 0.01 t = 0:0.01:1; Other than that, the Matlab code implement...

plus de 4 ans il y a | 1

Réponse apportée
When simulating the response to a specific input signal, the input data U must be a matrix with as many rows as samples in the time vector T, and as many columns as input chan
The size of u is 8 x 101. But as the error message says, it must have the same number of rows as t has elements (101), and it m...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
c2d function with "impulse" method to transform the loop gain from s-domain to z-domain.
I scanned the paper and also cannot recreate their results. Because HDAC has the form of a zero order hold, I would have tried: ...

plus de 4 ans il y a | 0

Réponse apportée
Multiplication of non-zero symbolic functions yields zero answer
Disclaimer: The doc page shows no examples of multivariate piecewise functions. I assume that is ok and that piecewise still ju...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
what is the relation between π*radian/sample and Hz in frequency axis of wvtool for windowing?
Very short answer: In discrete time* using the nomenclature of wvtool and freqz, "Hz" means cycles/sample (not cycles per sec). ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to extract data from a structure? How to concatenate the extracted data in array or matrix?
Not sure what the issue is. The code posted in the question seems to work exactly as expected for 1-4 (except for the apparent ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Error in the integration result
Expected result after expand() and simplify() of fxy. Don't know why these operations are needed. syms x y Pi = sym(pi); % m...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Plot Fourier transform of symbolic infinite periodic rectangular pulse
As far as I know, fourier() doesn't compute a closed form expression of the Fourier transform of a general, periodic function, t...

plus de 4 ans il y a | 0

Réponse apportée
How to generate random state space that is both controllable and observable?
Can use this function doc rss to generate a random, continuous, state space model with poles in the LHP or origin. Not guarnat...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
"Cannot simulate time response when internal delay model is non-casual"
It appears that the root of the problem is this line: G33 = (.87*(11.61*s^2 + 1)/(73.132*s^2 + 22.69*s + 1))*exp(-s); G33 has ...

plus de 4 ans il y a | 1

Réponse apportée
how to plot impulse response function
If all that's needed is a plot of the impulse response, as opposed to a closed from expression for it, then there is no need to ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Error using Plot for Fourier Series
Something doesn't look right with x on the left and right hand sides of the equation. Maybe the x on the right hand side should ...

plus de 4 ans il y a | 0

Réponse apportée
Inverse Fourier Transform Using ifourier command
Sometimes simplify is needed: syms w t X(w) = 4*sin(w/2)^2/w^2; x(t) = ifourier(X(w),w,t) x(t) = simplify(x(t),100) fplot(x...

plus de 4 ans il y a | 0

| A accepté

Charger plus