Réponse apportée
Find Bode Phase of Uncertainty models
I don't know if there is much control over what bode() does with a uss input, but you can get at the data in the plot after the ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Using rlocus() in MATLAB
Hello @Tb, The basic idea of the root locus is that is shows the location of the closed loop poles as a function of a gain, let...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to get Fourier transform of rectangular window as shown by wvtool function?. Why frequency domain of rectwin(M) using fft and wvtool are different?
It looks like wvtool is plotting the DTFT of rectwin(M) [h,w] = freqz(rectwin(64),1); figure plot(w,db(abs(h))) The DFT (as ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
lsim and transfer fcn block in simulink output different results
Simulink uses a continuous-time differential equation solver. The specific solver and solver parameters, like step size informa...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
High-precision IFFT
Given that x is an array of high precision numbers, not symbolic expressions, it should be straightforward to implement the ifft...

plus de 4 ans il y a | 1

Réponse apportée
How to plot Gauss sums ?
There are at least two problems with the code. Assuming you want to compute numerical values of s, the code can't reference s i...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
why margin() give positive phase & gain margin for unstable plant
I don't think margin() first verifies that the closed loop system is stable. It just applies the gain and phase criteria to the...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Matlab recommends me to apply 'subs' command but I have already used it to convert a symbolic matrix into a numerical one. What fails?
It looks like there is still one or sym objects left in A_num after the command A_num = subs(A_simb, P_simb, P_num); What is t...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Implementation of filter bank using fir1
Take advantage of the frequency shift property of the DTFT. For example Fs = 1000; f = (-0.5:.001:0.5)*Fs; L = 50; lpf = fi...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
dbode results in phase shift that is wrong (I believe)
dbode() callse bode(), which in turn has an algorithm that tries to "unwrap" the phase by adding multiples of 360 deg across the...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How do I print a Simulink block's mask dialog?
Here is a way to get the mask parameters for a masked block, stored in a struct with field names the parameter names and field v...

plus de 4 ans il y a | 0

Réponse apportée
Is applying a binary operator (+,-,*,/) to char arrays supported by MATLAB or just a "trick"
Not directly on point to the Question, but a related "feature" is that char vectors can be used to directly into index into arra...

plus de 4 ans il y a | 0

Réponse apportée
Finding x for y = f(x) in simulink
According to the Symbolic Math Toolbox, the solution can be expressed as %iel = wrightOmega(uel/3 - log(3) - 2/3) - 1/3 assumi...

plus de 4 ans il y a | 0

Réponse apportée
Unique workspace for each instance of Interpreted MATLAB Function block?
I think the way that you can do this with minimal changes to your overall approach would be as follows. If you're willing to cha...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How do I implement this in discrete form
If the transfer fucntion of the controller, C(z), is improper (more zeros than poles), then its partial fraction expansion will ...

plus de 4 ans il y a | 0

Réponse apportée
Array variable as parameter value in simulink
Use a Selector block. Choose the 'Index option' as 'Index vector - port'. Then connect A to the U port and feed the Indx1 port ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Create diagonal matrix from vector in Simulink without DSP toolbox and without knowing the dimension of the vector
The easiest way, perhaps not without drawbacks, is to use an Interpreted Matlab Function block. In the dialog box make the 'Matl...

plus de 4 ans il y a | 0

Réponse apportée
Trying to demonstrate group delay but not seeing any in dsp.BiquadFilter.
I thought group delay shifts the low frequency envelope of the signal and phase delay (phase / frequency) shifts the high freque...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
check for new line in a string
These functions might help doc newline doc contains

plus de 4 ans il y a | 0

Réponse apportée
I need help plotting this inverse Laplace Transform
Replace all instances of pi with Pi, defined as Pi = sym(pi); which is a good habit to get into regardless. Then you can stay...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
If z is a vector , what is the difference between angle(z) and atan2(z)
atan2() returns the answer in radians. So multiply it by 180/pi as for P2 and P3 (or use atan2d(), though atan2d() might result ...

plus de 4 ans il y a | 0

Réponse apportée
How to integrate for each row of parameters in a matrix, rather than using a loop
integral() can integrate a vector function of a scalar. It sounds like this is what you're looking for. link to doc Whether or...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Problem with amplitude and smoothness of FFT
The time domain signal, Signal, is not a sum of pure cosines because of how Digit is calculated, so we shouldn't expect its fft ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
how can i use mvnrnd function?
I'm not exactly sure what the question is. If the question is: how to draw hundres of samples from the multi-variate normal dis...

plus de 4 ans il y a | 0

Réponse apportée
problem in summation of two transfer function
sys1 = tf(1,[2 1]); sys2 = tf(2,[2 1]); sys3 = sys2 + sys1 minreal(sys3) minreal(parallel(sys1,sys2)) minreal() normalizes ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Error in using eval statement
There's almost certainly a better way to organize the data and store the results, but if you must use eval: ['Energy_H_A',num2s...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can I fix this Error?
Let's look at what we have so far with a sight change in notation that might make it clearer to read and a path to a general sol...

plus de 4 ans il y a | 0

Réponse apportée
Find poles and zeros of transfer function
That error shows up because minreal() and ss(), etc. are functions in the Control System Toolbox. Those functions cannot accept...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Define and Use Structure Parameters in Simulink
Do you actually have a variable in the base (or model, I suppose) workspace named 'struct'? That would be odd because struct is...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Use an array as input and output in Simulink
The unit delay block can handle arrays. Did you try it and run into an error?

plus de 4 ans il y a | 0

| A accepté

Charger plus