回答済み
How to programmatically distinguish between different block type?
Well, it does appear that there are several blocks in the Discrete library that all have BlockType == 'Delay' As far as I can t...

4年以上 前 | 0

回答済み
Why is Simulink Help Going to mathworks.com and Not Using my Local Help Browser?
Swithed the preference for documentation location to "Web, on mathworks.com," clcked Apply, switched back to "Installed Locally...

4年以上 前 | 0

回答済み
Control systems: Labelling multiple plots dynamically based on parameter ?
Here's a way to do it with a legend. s = tf('s'); Wn = 1; for zeta = 0.1:0.1:0.9 T = Wn^2/(s^2 + 2*zeta*Wn*s + Wn^2); ...

4年以上 前 | 1

回答済み
Solving two second order ODEs
I think there are a few mistakes in the code syms U(t) V(t) %Constants definition a = 1; w = 100; dU=diff(U,t); dV=diff(V,...

4年以上 前 | 1

質問


Why is Simulink Help Going to mathworks.com and Not Using my Local Help Browser?
I right click on a block in my Simulink block diagram and click on Help in the pop-up menu. Doing so opens up the doc page on ma...

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

1

回答

回答済み
Want to change Matlab current folder to be the same as Simulink
The easiest thing to do is use addpath() once to add the location of the .slx file to the search path. Alternatively, add this ...

4年以上 前 | 0

| 採用済み

回答済み
why are the output simulation results of the following LTI system different by using 'lsim' command and theorical method calculations?
I suspect the problem is that lsim() is ineherently an approximation to the LTI system response. I think that lsim() generates ...

4年以上 前 | 0

| 採用済み

回答済み
Feature similar to feedback command in simulink
Two separate issues. The first is that, as you've discovered, it's (almost?) always better to use the feedback() command as for...

4年以上 前 | 0

| 採用済み

回答済み
How to substitute the values of two variables in an expression at the same time - Matlab
Can you define Q1sym as a symfun? % simple example syms b t Q1sym(b,t) = b + t; b1 = sym(1:5); t1 = sym([ 1/2, 11/20, 3/5, ...

4年以上 前 | 1

| 採用済み

回答済み
Why does kron(D,I), with D and I both sized (nxn), not create a matrix sized (n^2 x n^2)?
Because D is not 5 x 5 x = sym('x', [1 15], 'real'); D = diag(-x(1) -x(2) -x(3) -x(4) -x(5)) size(D) Perhaps you meant D =...

4年以上 前 | 1

| 採用済み

回答済み
How to equate two equations and find one of the unknown from it as a function of second unknown?
syms et etplusone R1 = 1.5; ntone = R1 + etplusone + et; %%Equation(1) nttwo = log(R1) + 2*etplusone + et^2; %%Equation(2)...

4年以上 前 | 0

| 採用済み

回答済み
How to obtain orthogonal (not orthonormal) vectors from "orth" or "qr"?
I think this at least illustrates what you're trying to accomplish. It might not be (probably isn't) the best way % generate so...

4年以上 前 | 0

質問


Are there Any Restrictions on Latex Markup in Figure Titles?
This works fine: syms t s1(t) = exp(-abs(t)); figure; title("$"+latex(s1(t))+"$",'Interpreter','latex') But this does not ...

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

1

回答

質問


My Experience with Live Script is Not Meeting Expectations. Does it Meet Yours?
Following up from this question ... I've only been using Live Script for a few months now, but I've been using it over three ve...

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

0

回答

回答済み
Tips on how to write a transfer function with "e" on simulink
The exp(-sT) in G1(s) represents a delay of T seconds between the input and output of G1(s) (in addition to the effect of the 0....

4年以上 前 | 0

回答済み
Different vector length on plotting convolution of Hanning signal with Dirac Delta signal
It's easier to make it work if the signals are defined over the same time vector. And use the full convolution. dt = 0.1; xt= ...

4年以上 前 | 1

| 採用済み

質問


Is the Result from dsolve() Justified for a heaviside() Input?
This question is a follow up to this one that I feel warrants a separate discussion. The problem is ... Solve this differential...

4年以上 前 | 0 件の回答 | 0

0

回答

回答済み
errors with musyn -- Plant must have at least <> inputs and <> outputs
The plant model has 4 outputs and 1 input. If you look at doc musyn you'll see that the second (nY) and third inputs (nU) are...

4年以上 前 | 0

回答済み
Solving an equation with integration constants and boundary conditions
syms sigma_r(r) A B p_2 r1 r2 sigma_r = A - B/r^2 % eqn = sigma_r == 0; % edit: commented out after posting original answer. N...

4年以上 前 | 1

| 採用済み

回答済み
solution for symbolic equation: matlab can't find a solution for my equation
Use the ReturnConditions option to see all of the solutions syms x C Mo mom mom1 mus o l J(x) =(4*C*Mo*mom*mom1*mus*sin(o)*(C^...

4年以上 前 | 0

回答済み
How to express a variable (function) in terms of specific variables?
syms C_S C_CS C_BS C_C C_P C_B r1 r2 r3 k_A k_A1 k_S k_S1 k_D k_D1 Ct = C_S + C_CS + C_BS r1 = k_A*C_C*C_S - k_A1*C_CS; r2 = ...

4年以上 前 | 0

回答済み
How to normalize state variables in ODE45 each timestep.
Some thoughts: a. If you know from the application that you don't have to worry about getting close to singularities, integrate...

4年以上 前 | 0

回答済み
Feedin vector in feedback function for mimo systems
Try an example with a known solution. A = -diag(1:4); B = eye(4); C = eye(4); D = zeros(4); sysp = ss(A,B,C,D); sysk = ss(dia...

4年以上 前 | 0

| 採用済み

質問


How Can I Extract One Period of a Periodic Function that is Defined with Mod() ?
Suppose I have a function, for example syms t real f(t) = triangularPulse(-1,1,t) Now create its periodic extension using mod...

4年以上 前 | 0 件の回答 | 0

0

回答

回答済み
Output the amount of time it took to run a simulation
Execute simout = sim(…) Then look at simout.SimulationMetadata.TimingInfo

4年以上 前 | 1

質問


Can't Uninstall, What Should I Do?
Matlab, actually Simulink, was throwing some weird error. So I thought I'd unintall and then do a fresh install (of 2020b). Bu...

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

1

回答

回答済み
symbolic variables into double array, observability matrix
The function obsv() in the Control System Toolbox only accepts numeric input. If you want the symbolic form of the observability...

4年以上 前 | 0

回答済み
Removing path name from Simulink block name
I'm seeing the same thing, though I'm not sure that is correct base on the documentation. And it is certainly a limiting behavio...

4年以上 前 | 0

| 採用済み

回答済み
discrete-time real exponential signal
Those points at zero show up because alpha is negative and the code is raising alpha to non-integer powers t. For those values o...

4年以上 前 | 0

| 採用済み

回答済み
Converting differential equations to State-Space/Transfer Function representation
There really is no need to use the symbolic stuff (though you can if you really want, at least for part of the problem). Suppose...

4年以上 前 | 3

| 採用済み

さらに読み込む