Réponse apportée
Trouble finding more than one solution with solve
Here's a brute force approach that at least seems to give a reasonable result for V0 = 0. This code runs very slowly because erf...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Need help initializing variable x and plotting probability density function
Hi Stirling, To plot the curve mean = 1930000; standardDeviation= 64000; % note theat ^2 is changed to .^2 for elementwise o...

environ 4 ans il y a | 1

Réponse apportée
how can I plot a bode plot of transfer function that has one variable that changes the frequency response?
Tunable Models might be worth a look. They basically let a single model be defined with a one or more parameters that have defau...

environ 4 ans il y a | 1

Réponse apportée
symbolic integration needed in the present code
syms h q x f(x) f0 f1(x) f2(x) f3(x) f = f0 + f1*q + f2*q.^2 + f3*q.^3; Eq0 = diff(f,x) - diff(f0,x); Eq1 = diff(f,x) - f^2; ...

environ 4 ans il y a | 0

Réponse apportée
sum of dirac delta function
syms d(x) t d(x) = dirac(x); t0 = 1:3:10; % a couple of terms for example y(x) = sum(d(x-t0))

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Why is tan(a) not equal to sin(a)/cos(a)
It's kind of a pain, but .... syms b alpha eq1 = b == sin(alpha)/cos(alpha); eq1 = rewrite(eq1,'tan') eq1 = lhs(eq1) == simp...

environ 4 ans il y a | 0

Réponse apportée
Need help finding the stability of a closed loop system and storing the values.
Assuming continuous time: Gred = tf([7.385,476.7],[1,19.39,491.5,3835,0]); Kp = 0:1:200; Kd = 0:1:10; Preallocate the matrix...

environ 4 ans il y a | 3

| A accepté

Réponse apportée
Solving a symbolic equation for a vector
For each value of theta, there are four solutions, two of which are the trivial zero solution. All solutions can be saved in a c...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Finding solution of an equation containing symbolic parameters. I want solution of one symbolic parameter in terms of another
Not sure why solve doesn't work as is. See below for one approach to a solution. syms c_1 c_2 D r_t %Parameters sig = 0.2; p...

environ 4 ans il y a | 1

Réponse apportée
Which is the correct transfer function notation?
Good catch. The documentation is incorrect. Assuming that sys represents the desired system, it should be entered as sys = tf(...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Trying to find square of "control system"
Declare the control gains and frequency as real. syms P_slozka real; % kp syms I_slozka real; %T_I syms D_slozka real; %T_D ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Im trying to convolute a rect function and a sinc function
Because Gz is a variable, not a function, Gz(z) is trying to use the vector z as an index into the variable Gz. But z contains ...

environ 4 ans il y a | 0

Réponse apportée
design error of closed loop linear quadratic gaussian(LQG) regulator
Hi @Jun Seung Mun I think there are a few issues with the code. First, the plant should have at least one input for the control...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
I want to replace more than 1 random words in a sentence with "___" using matrices. I can type it out long hand but want to avoid this.
Hi Cade, It would be helpful to include an example input and show what the desired output should be. As best I can tell, maybe...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Difference between lhsnorm and normrnd
The doc page for lhsnorm is surprisingly sparse. But it does talk about the multi-variable normal distribution, in which case si...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How do I reverse the effect of an integral block?
Hi Janith Are you sure the encoder is a pure differentiator? Even if it is, the simulation is likely to have problems with the...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Can FILTFILT(B, A, X) yeild the same results as FILTFILT(SOS, G, X) assuming inputs are generated via [z,p,k] = butter(3,Wn) + [sos,g] = zp2sos(z,p,k) and [A,B] = butter(3,Wn)
Hello Chris, Here's the code I ran (unknown to me, butter() assumes a bandpass by default with a two-element frequency vector, ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Why does integrating my signal attenuate it?
Hi Janith, If the input to the integrator block is u(t) = sin(w*t), the output of the integrator will be y(t) = -1/w*cos(w*t) ...

environ 4 ans il y a | 2

| A accepté

Réponse apportée
What is the best way to make bodemag of multiple MIMO systems distinguishable? Markers?
Hi @Bruno Dogancic Here's some code to put an 'o' marker on every 10th data point. Adapt as needed to change markers, line styl...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How can i force simulink to use a set of data from another simulink model ?
Try using the sim() command instead of set_param. I had trouble with the latter, but no problems with the former. This code wo...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Is there a function like "y = filter(b,a,x,zi) uses initial conditions zi for the filter delays" in fftfilt? If not, what's the most efficient way to implement this?
Filtering is a linear operation so the iniital condition response and the input response can be computed separately and then add...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to put this transfer function into simulink
The transfer function in question syms s H(s) = -(1 - 0.5*exp(-10*s))/(40*s + 1)/(15*s + 1) Starting from a single input sign...

environ 4 ans il y a | 0

Réponse apportée
How to get simplified, symbolic solutions for definite integrals
Declare x w to be real syms x w real fn1 = exp(-abs(x))*cos(w*x) int(fn1, x, [-inf inf])/sym(pi)

environ 4 ans il y a | 0

| A accepté

Réponse apportée
I am trying to use the rectangular pulse function, but I am not sure how to use it correctly to solve a Fourier problem.
Hi Connor, This question brings up some interesting aspects of Fourier analysis, and how transforms of the discrete-time sample...

environ 4 ans il y a | 0

Réponse apportée
Matlab and Routh criterion for evaluation of K for stability
Hi @omar khasawneh, Without a value for K I think you'll need to use the Symbolic Math Toolbox. Your code adapts easily. I did ...

environ 4 ans il y a | 4

| A accepté

Réponse apportée
Lsim inputs inversion provide the same result
Interesting. A quick look at the code, at least for the case where an output argument is specified, shows that the function tha...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
FFT of the average vs average of the FFT
For a matrix input, fft() works down the columns. Maybe this: rng(100); S = rand(5); fft(mean(S,1)) % mean for each column,...

environ 4 ans il y a | 0

Réponse apportée
Continuous Convolution in Time Domain
Hello @Masoud Nateghi The code needs to use the full convolution sum to approximate the convolution integral. Also, because the...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Impulse and step response differences
Hello @Arcadius, The differential equation in the Question is ambiguously written. Your solution for the impulse response assum...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
FFT of Gaussian filter in 1D
Hello @Donya Khaledyan The code in the question doesn't define t nor FGHE2, so the plots can't be recreated. Code below might b...

environ 4 ans il y a | 1

Charger plus