Réponse apportée
Fourier Transformation of dirac comb
There is one too many points in the signal y. If you plot([y y]) and zoom in you'll see the pulse at sample 1001 immediately ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Convert s in j*ω in a transfer function
No need to change anything in sys. It is a tf object and either freqresp() or bode() can evaluate sys at s = j*w doc freqresp ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How to find DTFT of given sequence in matlab
Assuming that y(n) = 0 for abs(n) > 5, there are are only three values of n for which y(n) is non-zero. Put those values of n an...

plus de 5 ans il y a | 0

Réponse apportée
Printing out pi as a symbol in equations instead of the numerical value
If I understand the problem, it appears the idea is to define a function, an_Id, that can be used for both numerical evaluation ...

plus de 5 ans il y a | 0

Réponse apportée
probability - execution of an operation
If T has a normal distribution, then doc normcdf can be used to find the probability P(T < t)

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Calculating and Plotting Weibull Distribution Function(wblpdf) with Cell Arrays
Here's an example that you might be able to adapt to your needs. >> params = {[1 2];[2 3];[3 4]}; % define cell array with par...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
I want to find where the root locus branches cross the y axis.
One option would be to use the return values of rlocus: [r,K]=rlocus(G1) to get a coarse idea of the value of K that results i...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Convert transfer function writing form
Maybe something like this: >> H = tf([15 25 1],[5 0 5],-1) H = 15 z^2 + 25 z + 1 ----------------- 5 z^2 + 5...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Is it possible to manually connect the ABCD matrices to obtain the ss representation
Need to modify two lines of code as follows: clc; clear all; k = 1; m = 1; b = 1; A = [0 1; -k/m -b/m]; B = [0 1/m]'; C ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
c2d with 'impulse' method
I don't think you can use c2d() and get z/(z-1) with a sample time T = 0.1. In, short, the factor of 0.1 is needed to have the ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Plotting a bode diagram without transfer function, using only magnitude and phase and frequency
You can use the data you have to make an frd model: doc frd Once you have the frd model you can make the bode plot using the b...

plus de 5 ans il y a | 0

Réponse apportée
How to programmatically know if a block is a sink block?
I'm actually suprised that there's not an easier way to to do this. The BlockType is a read-only so checking: ismember(get_par...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Symsum function for basic electrical engineering calculations.
symsum() is a function in the Symbolic Math Toolbox and takes in symbolic inputs. If I understand that code correctly, all of th...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How can I evaluate characteristic functions in MatLab?
The CF is the Fourier transform of the pdf. Approximate the pdf as a sum of line segments. Take the sum of the Fourier transfor...

plus de 5 ans il y a | 3

| A accepté

Réponse apportée
Defined domain integral(convoulution) in simulink
Assuming h is constant and h >= 0 .... It seems like the model can be expressed as follows: wdot(t) = A*w(t) + B*u(t) z(t) = ...

plus de 5 ans il y a | 0

Réponse apportée
solving integral equation where the unknow is the upper limit
Assuming T and T0 are positive, it looks like there are two values of T that will satisfy the equation. Not sure why your code i...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Help using symbolic transfer function
Can do it by hand, at least for this simple case: >> syms K1 K2 K real >> syms s >> K = sym(6); >> G(s) = K1*K2/(s^2 - 3*s -...

plus de 5 ans il y a | 0

Réponse apportée
Extract values from Nyquist for negative frequencies
The Nyquist plot is symmetric, so the compex cojugate of the output would correspond to the negative frequencies. [re_pos,im_po...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Reducing fast dynamic poles in a transfer function.
Maybe freqsep() is what you want: >> G=tf(1,conv([1 5],[1 70])) G = 1 ---------------- s^2 + 75 s + 350 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Matlab Nyquist Sampling Problem
According to doc nyquist you can do nyquist(k1,w) where w is a frequency vector of your choosing.

plus de 5 ans il y a | 0

Réponse apportée
The output of my executed code is not giving the answer I am looking for when using the symUnit function
There are many options to which H*Hz can be converted; which one should be chosen automatically? But you can try it yourself: ...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Spring mass damper system shows position of mass only to be on positive side
The transfer function from Force to Position has dc gain of 2. The input F has a value of 2, so the steady state of the output ...

plus de 5 ans il y a | 1

Réponse apportée
Integral of exp(-x)*P(x)/Q(x) in terms of exponential integral in symbolic tooblox
What is the concern with the result that was returned? It looks like the SMT came back with the best answer it could with the in...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Zero-crossings of Nyquist Diagram
By definition, the gain margin is defined at the point(s) where the Nyquist plot crosses the real axis. Use the allmargin() func...

plus de 5 ans il y a | 1

Réponse apportée
What is wrong with my differentiation of function of phi(t)?
I think what you want is to substitute a variable for diff(fi,t), differenitate wrt to that variable, and substitute back. >> s...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Reduce block diagrams symbolically
Assuming you want final result in terms of the gi(s): syms g1(s) g2(s) g3(s) g4(s) g5(s) symsys1 = g4(s)-g5(s); symsys2 = g...

plus de 5 ans il y a | 0

Réponse apportée
Implement a Transfer Function in Code state space higher order
The short story is that dt is too large for this system. Try running with: dt = 1e-5; t = 0:dt:0.03; And don't set u(1) = 0....

plus de 5 ans il y a | 0

Réponse apportée
Symbolic Math shows weird behavior - not seen in Wolfram or Octave
It looks like the expected solution can be obtained with some work. Maybe someone else can get there faster. >> syms x real >...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Sample Time and simOut Interaction
Keep the orginal solver settings you had (assuming they gave you an acceptable solution). Set the Sample Time parameter in the ...

plus de 5 ans il y a | 1

Réponse apportée
Problem in matrix partition for uncertain system: how to find matrices A, B1, B2, C1, C2, D11, D12, D21, D22?
Suppose you have a model xdot = A*x + B1*w + B2*u z = C1*x + D11*w + D12*u y = C2*x + D21*w + D22*u This system can be rewri...

plus de 5 ans il y a | 1

| A accepté

Charger plus