Respondida
Why do I get an error when I try to use the solve function?
solve() requires the inputs to be Symbolic Math objects syms x y [x,y] = solve(x + 2*y == 4, 2*x - y == 3) % note the use of ...

más de 4 años hace | 0

Respondida
Simulink - Multiplication of Two Sine Signals (i couldn't understand the logic)
Question 1: How does the value of the signal dimension ( [5x1] ) was created? I mean which parameter for sine wave dis affect th...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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)

más de 4 años hace | 1

Respondida
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 = ...

más de 4 años hace | 0

| aceptada

Respondida
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 ...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

Respondida
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() ...

más de 4 años hace | 1

Respondida
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...

más de 4 años hace | 1

Respondida
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

más de 4 años hace | 0

Respondida
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 = ...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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 = ...

más de 4 años hace | 0

| aceptada

Respondida
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

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 1

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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: ...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 1

| aceptada

Respondida
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). ...

más de 4 años hace | 0

| aceptada

Respondida
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 ...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
"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 ...

más de 4 años hace | 1

Respondida
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 ...

más de 4 años hace | 0

| aceptada

Cargar más