回答済み
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 ...

5年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 3

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

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

5年以上 前 | 0

回答済み
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年以上 前 | 2

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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...

5年以上 前 | 0

回答済み
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....

5年以上 前 | 0

回答済み
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 >...

5年以上 前 | 1

| 採用済み

回答済み
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 ...

5年以上 前 | 1

回答済み
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...

5年以上 前 | 1

| 採用済み

回答済み
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...

5年以上 前 | 0

質問


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]) ...

5年以上 前 | 1 件の回答 | 0

1

回答

回答済み
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...

5年以上 前 | 0

さらに読み込む