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

5年以上 前 | 1

| 採用済み

回答済み
Transfer Function and step response
You need the the Control System Toolbox.

5年以上 前 | 0

回答済み
conversion between state space and transfer function
An infinite number of state space realizations correspond to a single transfer function. From a transfer function, the Control S...

5年以上 前 | 1

| 採用済み

回答済み
Feedback command for MIMO systems in MATLAB
I think this does what you want (assuming negative feedback) Pitch_State = STATE_SPACE_MODEL({'x';'Theta'},'Pitch Torque') PIT...

5年以上 前 | 0

| 採用済み

回答済み
Can I define the initial condition at a nonzero point using Simulink integator?
Look at using the Start Time parameter on the Solver Pane (link). As best I can tell, it will do exactly what you want; initial...

5年以上 前 | 0

回答済み
Fast Fourier Transform Zero Padding
Try changing these lines: L = length(O2_exp); Y = fft(O2_exp); to L = nfft; % select nfft > numel(O2_e...

5年以上 前 | 0

| 採用済み

回答済み
Simulink control with moving average
A difference equation of the form y(k)=(c0*u(k)+c1*u(k-1)+c2*u(k-2)+c3*u(k-4)+c4*u(k-4))/D can be implemeted with one of the b...

5年以上 前 | 0

| 採用済み

回答済み
State Space with Disturbance
Combine d and u into a single input vector: Xdot = A*X + [B F] * [u;d] y = C*X + [D 0]*[u;d] % assuming the disurbance doesn'...

5年以上 前 | 4

| 採用済み

質問


Why Would fplot(f) and fplot(vpa(f)) Show Different Results?
I'm seeing different results between fplot for a symfun object, the fplot of the vpa form of that object, and the regular old pl...

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

1

回答

回答済み
How do you do Unity Feedback on Matlab? (Transfer Functions)
Check the doc page for feedback() doc feedback In this case, the feedback line isn't "empty," it has a gain of 1 (or if you pr...

5年以上 前 | 0

回答済み
Illustration of Frequency Response (magnitude and phase response)
if you wnat to plot them yourself, then use plot(), or semilogx() or whatever plotting function meets your needs. Or you can de...

5年以上 前 | 0

質問


Peculiar Result with Solve (Symbolic Math Toolbox) with Three Equations and Three Unknowns. Can Anyone Explain?
Suppose I have three equations and three unknowns as so: >> syms X1 X2 X3 real >> e1 = X1/(X1 + X2 + X3) == 0.1; >> e2 = X2/(...

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

1

回答

回答済み
Generation of Conditional Random Variables
Based on this comment, the problem is as follows: Let Xi be a set of independent, continuous random variables, i = 1-n. Let wi...

5年以上 前 | 1

回答済み
How do I stop a signal after a fixed time and let the simulation continue?
Use a Switch block: https://www.mathworks.com/help/simulink/slref/switch.html

5年以上 前 | 1

| 採用済み

回答済み
Model Linearisation - Open Loop Input and Input Pertubation has the same input values ?
The linear analysis points (Input Perturbation, etc.) only apply for linearizing the model. They don't have any impact when runn...

5年以上 前 | 0

回答済み
How to obtain Real and Imaginary parts of symbolic polynomial
From the context of the code, it appear that w is a real number. Assuming it being so will help: >> syms s syms w real poly...

5年以上 前 | 0

| 採用済み

回答済み
fft of Rectangle*sin function in MATLAB
It appears that you want to find the Continuous Time Fourier Transform of a windowed cos wave, where the window covers an intege...

5年以上 前 | 0

| 採用済み

回答済み
Error when using find function
Maybe you want to start with ismember? doc ismember

5年以上 前 | 0

回答済み
how to use ss and lsim for 1 dof differential equation
That lsim command calculates y using default initial conditions x(0) = xdot(0) = 0, but the analytical solution clearly doesn'...

5年以上 前 | 0

| 採用済み

質問


Given One Partition of a Matrix, What is the Best Way to Find a Second Partition that Ensures the Matrix is Nonsingular?
Suppose I have a matrix C, dimension m x n, m < n, and that rank(C) = m. I wish to find a marix V, dimension n-m x n, such that...

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

3

回答

回答済み
Lsim gives NaN for square input
Look at the eigenvalues of the plant matrix: >> eig(sys) ans = -6.846331220081878e+07 -5.237359879589575e+07 ...

5年以上 前 | 0

| 採用済み

回答済み
Invalid use of operator in for loop
You're geting the error because that's the wrong syntax for a for loop: doc for Having said that, it kind of looks like you re...

5年以上 前 | 1

回答済み
How do I find the LTI system using deconv, when it is connected to more systems and with the final impulse response?
I think heaviside is function from the Symbolic Math Toolbox, but I don't see any symbolic variables defined. In any case, perha...

5年以上 前 | 0

回答済み
Simulink Difference Equation Implementation
Maybe this example will help, which essentially illustrates the comment made by Alvery. Consider a plant P(s) = 1/(s + 5) that ...

5年以上 前 | 0

| 採用済み

回答済み
Simulink with control system designer: Step response is completely flat.
The block diagram has an Open-loop Input at the input to the plant (on the line marked "u + d") so the response from any input t...

5年以上 前 | 1

| 採用済み

回答済み
How to chose one form of transfer function from other forms
You don't need to get the num and den explicitly using tfdata (unless you need them for some reason). To convert from ss to tf: ...

5年以上 前 | 1

回答済み
Error using acker System must be single input.How can I solve this problem ?
Try using the place command: doc place

5年以上 前 | 0

質問


Why is extractFileText Much Slower than fileread for Text Files?
I'm fine with using fileread, but am curious why extractFileText is so much slower: >> tic,for i=1:500,s1=extractFileText('sonn...

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

1

回答

回答済み
Can I do this using matlab or simulink?
It looks like the Simulink model is that of a linear time invariant (LTI) system. If that is the case one can use linmod to get ...

5年以上 前 | 0

回答済み
Rearrange state space system
Let's assume that the state space model from Simulink is defined as: xdot = A*x + B*u [y1;y2] = [C1; C2] * x + [0;D2] u where...

5年以上 前 | 1

| 採用済み

さらに読み込む