Answered
Request for help computing convolution of random variables via fft
Here is one option, illustrated with two widely separated normal pdfs: mu1 = 10; sigma1 = 2; mu2 = -5; sigma2 = 1; Zextreme =...

4 years ago | 0

Question


Should the Symbolic Math Toolbox Enforce Assumptions on Assignment?
Consider the following: syms a real isAlways(in(a,'real')) So far, so good. But a = sym(2)*1i; % accepted w/o error or war...

4 years ago | 2 answers | 0

2

answers

Answered
Conditional Normal Random Distribution
Yes. If you know mu and Sigma of the vector x and the first n values of x are given, then the density of x(n+1:end) is also nor...

4 years ago | 0

| accepted

Answered
CDF of VOn Mises distribution
This code seems to recreate one of the CDF plots on the linked wikipedia page. It doesn't run very fast. syms x mu kappa x0 rea...

4 years ago | 0

Answered
I have a symbolic expression from simplify which has obvious cancellations and other further simplifications: how do I force this?
Sometimes you can get furhter along by putting assumptions on the variables that reflect what they actually represent. For examp...

4 years ago | 0

Answered
blkbuild command is not functioning in my matlab software, i have installed control system toolbox although programme is not executing.
Hmm. Not sure why that error is coming up. Block 1 is clearly defined. But Block 3 is not, so that should cause an error. Did ...

4 years ago | 0

Answered
The modeling of delta function in the numerical calculations
Would it just be: deltafunc = @(t,tprime,deltat)((abs(t-tprime)<deltat/2)./deltat); % assumes deltat > 0 Not sure how that Xz ...

4 years ago | 0

Answered
find overshoot, undershoot, rise time and fall time on a non step response function
I'm not sure what you mean by "fall time," so can't help you there. Why isn't stepinfo(y,t) sufficient? Is the data too nois...

4 years ago | 0

Answered
Finding Impulse response of LTI system when input signal and output are given.
We know that y[n] = h[n] * x[n] where * denotes convolution. You have x[n] and y[n]. Let h[n] be denoted as [h0 h1 h2 etc.]. Us...

4 years ago | 0

Answered
Plotting multiple step response for multiple transfer function
What's the basis for the assertion that GS should be unstable at K = 26.25? As you've seen, that clearly cannot be the case beca...

4 years ago | 0

Answered
How to change the timebase of a discrete-time model.
This function might be what you're looking for: doc d2d

4 years ago | 0

| accepted

Answered
Determining the overshoot of step response without plotting it
Check out doc stepinfo

4 years ago | 0

Answered
Error when ploting discrete time function
The function definition is implicitly assuming that the input, n, is a scalar. Looking at the first the term on its LHS: n = 2...

4 years ago | 1

Answered
rlocus throws up error
Seems to work fine: sys = tf([2 5 1],[1 2 3]); rlocus(sys); You might have a different function tf() or rlocus() that is shad...

4 years ago | 0

Answered
Why am I not able to obtain the Fourier Transform of exponent expression using Symbolic math?
Based on the assumption, I'm going to assume that f(x) = x*exp(-x) for x>=0 and f(x) = 0 for x < 0. In which case syms f(x) f...

4 years ago | 1

| accepted

Answered
getting error while using feedback
The Control System Toolbox does not support operations on sym objects. Having siad that, the error message that I'm seeing is f...

4 years ago | 0

Answered
How can I differentiate an abstract symbolic function?
When I run this code (2019a) on my computer, I get: syms x y f(k) g(x,y) g(x,y) = f(x - 3*y); g_x = diff(g,x) g_y = diff(g,...

4 years ago | 0

Answered
Convert transfer function from s domain to z^-1 domain
c2d supports different methods. The "pole-zero mapping" is what c2d calls "matched." However the result using "matched" does n...

4 years ago | 0

Question


Should sympref Change the Behavior of rectangularPulse()?
The doc page for rectangularPulse states: If x = a or x = b and a <> b, then the rectangular pulse function equals 1/2. Verify...

4 years ago | 0 answers | 0

0

answers

Answered
How to solve an ODE in Simulink with non constant coefficients?
Use a Clock block from the Sources library to output the simulation time (t).

4 years ago | 0

Answered
How to get the coefficients of a fractional polynomial from syms?
If I correctly understand this comment (and I'm not sure I do), it sounds like you just want the coefficients of the numerator o...

4 years ago | 0

| accepted

Answered
How can I get the correct spectral phase variations of a super gaussian pulse?
The posted code doesn't run. The frequency vector f is defined in terms of numel(X), but X isn't defined yet. I thing that intr...

5 years ago | 0

Answered
using of ss2tf command
In my opinion, that statement in the documentation doesn't make sense. It should say "... returns the Laplace transform of the ...

5 years ago | 1

| accepted

Answered
Simulating Gamma distributed RV's using Matlab
For starters, probably shouldn't use inline. Use an anonymous function instead. And I'm going to change the variables involved ...

5 years ago | 0

| accepted

Answered
what is root of a equation in s(laplace domain) in response of ilapalace means
If ilaplace can't find a closed form expression it returns the result in terms of "root," which can then be evaluated numericall...

5 years ago | 0

| accepted

Answered
How to obtain FFT of nonuniformly spaced data?
You can try using the tspan input to od15i to specify equally spaced sample points in time at which the solution is desired. Che...

5 years ago | 1

| accepted

Answered
Different frequency responses using [z,p,k] method and [b,a] for 2nd order elliptical filter
If fvtool is like freqz, you need to make sure that the sos input has more than one row. Otherwise, the input might not be inter...

5 years ago | 1

Answered
how to change line colors in bodes, nichols, nyquist, etc
I tested stepplot and bodeplot and am seeing the same thing as you, i.e., if more than 7 responses, then multiple responses are ...

5 years ago | 0

Answered
Does order of multiplication really matter when using simplify ?
I suspect that in the first instance the term 1/(2*pi) is first evaluated numerically, and then the result in coverted to symbol...

5 years ago | 1

| accepted

Answered
Problem with mvncdf - returning NaN
The limits of area of integration defined in xl and xu are way, way, out in the tails of the density function, which may be why ...

5 years ago | 1

| accepted

Load more