Community Profile # Paul

Last seen: 1 giorno ago Active since 2011

#### Statistics

All
• • • • • • • #### Content Feed

View by

Question

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

circa 16 ore ago | 1 answer | 0

### 1

Question

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

circa 20 ore ago | 0 answers | 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....

2 giorni ago | 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= ...

9 giorni ago | 0

Question

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

9 giorni ago | 0 answers | 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...

10 giorni ago | 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...

11 giorni ago | 1

| accepted

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

11 giorni ago | 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 = ...

12 giorni ago | 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...

12 giorni ago | 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...

12 giorni ago | 0

| accepted

Question

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

12 giorni ago | 0 answers | 0

### 0

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

13 giorni ago | 1

Question

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

13 giorni ago | 1 answer | 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...

13 giorni ago | 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...

14 giorni ago | 0

| accepted

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

15 giorni ago | 0

| accepted

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

15 giorni ago | 1

| accepted

Collect does not do the job
Here is one approach showing step-by-step. Many could be combined. Maybe there is a simpler way? syms y y0 muY(y) dt f=(y*di...

15 giorni ago | 0

| accepted

In the Symbolic toolbox,how to get the results like in the old version
% first example syms x g(x) = 1/(x - x^2); f(x) = int(g(x)) simplify(rewrite(f(x),'log'),100) % as it turns out, f(x) retur...

16 giorni ago | 1

| accepted

how to build a control system with one input and multiple outputs
Here is one approach (there are others), with simple examples tf's for C, F, and G, that you should be able to adapt to your pro...

17 giorni ago | 0

| accepted

Why does using a symbolic function as argument in a function give 'not enough input arguments' error?
There seems to be more f's than is needed. If the first input to bisection from the caller is a symfun, it should be usable dire...

18 giorni ago | 0

Using symbolic integration: Why does my double integral returns different numerical values depending on integration order?
Comment: I'm not going to use the anonymous functions because, as far as I know, those are invalid inputs to int and I don't kno...

18 giorni ago | 2

| accepted

How do you use ode45( ) when the equation is not in dy/dt form?

19 giorni ago | 0

Basic Difference Equation Plot
Look carefully at these lines I = zeros(1, 500); I(1) = 50; for t = 2:100 I(t+1) = I(t) + rI * I(t) * (1 - I(t)/f(P)) - ...

20 giorni ago | 0

Compare two string vectors with same input arguments but different length
If stored in a cell arrary: c1 = {'a','b','c','d','e','f','g','h'}; c2 = {'a','a','b','c','d','d','d','e','e','f','g','h'}; ...

20 giorni ago | 0

| accepted

Plot Fourier Series from a variable
The easiest way would be to use fplot(). Also, use assume() instead of evalin syms x k L n % evalin(symengine,'assume(k,Type::...

21 giorni ago | 0

| accepted

Question

How Can the Output of odetovectorfield be Used
Other than sending to matlabFunction(), how can one use the output of odetovectorfield? syms x(t) eqn = diff(x(t),t,2) + diff(...

21 giorni ago | 0 answers | 0

### 0

Find non singular transformation matrix
Assuming the goal is as described in this comment, one solution would be: T1 = [0 0 0 0 0 0 1 0 1 0]; T = [T1;null(T1).']; S...

21 giorni ago | 0

| accepted

Question

Is the LiveScript Editor Connected to the Base Workspace?
I have a live script that does a bunch of stuff. After the script runs I have some variable from that script in the base worksp...

21 giorni ago | 1 answer | 0