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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 3

| accepted

Answered
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) = ...

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 2

| accepted

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

5 years ago | 1

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

5 years ago | 0

| accepted

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

5 years ago | 1

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

5 years ago | 1

| accepted

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 1

| accepted

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

6 years ago | 1

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

6 years ago | 1

| accepted

Answered
SS2TF Error
If you want the numerical answer, then don't even bother with the symbolic stuff. Just assign values to the variables R1, R2, C...

6 years ago | 0

Question


Can a Comma Separated List be Generated Directly from a sym Array?
Can a comma separated list be generated directly from a sym array for use as input to a sym function? >> xvar=sym('x',[1 4]) ...

6 years ago | 1 answer | 0

1

answer

Answered
How to multiply transfer function in matrix form?
The result you seek can be found by (after running the code in the original question): >> minreal(Dc) ans = -40.36...

6 years ago | 0

Answered
Gaussian Mixture Model using gmdistribution
Try this: >> mu=[6.25;4.33]; >> sigma=reshape([0.52 0.37],1,1,2); % third dimesion required, note that sigma are VARIANCES pe...

6 years ago | 1

| accepted

Load more