Community Profile

# Anthony Sirico

Last seen: 8 months ago Active since 2020

All

#### Content Feed

View by

Question

How to use a function within optiproblem?
My minimization function is: pi = x(1)+x(2)-rho*min(0,x(1)^2+x(2)^2 how can i use this equation in optimproblem? prob = optim...

9 months ago | 0 answers | 0

### 0

Question

Optimization problem with lower and upper bounded constraints
maximize:x0.063x4x7 −5.04x1 −0.035x2 −10x3 −3.36x5 subject to: x5 = 1.22x4 −x1 x6 = (98000 x3x4)/(x9 + 1000x3) x8 = (x2 + x5)...

9 months ago | 1 answer | 0

### 1

Question

Live Editor output fractions to decimals
Is there a way in the live editor to change the output from fractions to decimals?

11 months ago | 1 answer | 0

### 1

State Space with Disturbance Matrix
You cannot use the ss function symbolically.

1 year ago | 0

Question

plot a function that has a variable that changes with time
The function has a variable ap that changes at t >= 100s. How do I plot that? close all; clear; clc tspan = [0 150]; x0 = [1]...

1 year ago | 1 answer | 0

### 1

Question

Call a function with multiple nonlinear eqns with ODE45
I created a function with multiple nonlinear equations, and inside that function i call on another function that uses a time par...

1 year ago | 1 answer | 0

### 1

Question

Finding critical/equilibrium Points of a nonlinear System
I'm given the following nonlinear equations: Dx1 = @(x1,x2) (x1-1).*(x1+x2); Dx2 = @(x1,x2) x2 - x1.^2; What would be the bes...

1 year ago | 1 answer | 0

### 1

Question

Using subs in a matrix of equations
If i have a matrix of eqns, how can i sub in certain letter values now. I am using a live script where the first section creates...

1 year ago | 1 answer | 0

### 1

Question

Error using DynamicSystem/lsim
clear; clc; close all; A = [1 0 0 0; 0 -1 0 0; 0 0 -2 0; 0 0 0 -3]; B = [1 0; -1 1; 0 -1; 1 -1]; C = eye(4); D = 0; X0 = ...

1 year ago | 1 answer | 0

### 1

State Space in lsim keeps returning 'Matrix dimensions must agree'
t has to be 1x4.

1 year ago | 0

| accepted

Question

State Space in lsim keeps returning 'Matrix dimensions must agree'
A = [1 0 0 0; 0 -1 0 0; 0 0 -2 0; 0 0 0 -3]; B = [1 0; -1 1; 0 -1; 1 -1]; C = eye(4); D = 0; X0 = [-2; -1; 1; 2]; EvA = eig...

1 year ago | 1 answer | 0

### 1

Question

simulate State Space system with lsim
A = [0 1 0 0; 0 0 1 0; 0 0 0 1; -2 -5 -7 -2]; B = [0; 0; 0; 1]; C = [1 3 0 0]; D = 0; t = 10; sys = ss(A,B,C,D); x0 ...

1 year ago | 1 answer | 0

### 1

Question

SS2TF Error
sysm s R1 R2 C1 C2 A = [-(R1+R2)/(C1*R1*R2) 1/(C1*R2); 1/(C2*R2) -1/(C2*R2)]; B = [1/(C1*R1); 0]; C = [0 1]; D = 0; [n,d]...

1 year ago | 2 answers | 0

### 2

Question

Local Function not being Entered
I am trying to create a recursive algorithm, with a local function. But when i test the alg, the initial input variables don't s...

1 year ago | 1 answer | 0

### 1

Question

Calling python in MATLAB
In the below code, I have a Depth First Search with the pseudocode and the python code. My first question is how can I call this...

2 years ago | 1 answer | 0