Community Profile

# Ali Esmaeilpour

Last seen: 2 years ago Active since 2019

#### Content Feed

View by

Question

how to create diagonal matrix while there is condition for each diagonal element
Greeting, I wanted to create a diagonal matrix that its elements are conditional as shown in the picture:

3 years ago | 0 answers | 0

### 0

Question

How to make black-box optimization work with time samples
I got a black box optimization which I want to change in a way that it could work with time samples. I mean now I got a black bo...

3 years ago | 0 answers | 0

### 0

Question

how to generate rectangular pulse using rectpuls
I got a rectangular pulse and I want to generate it like a function "rectangularpulse" instead of the way it's generated with na...

3 years ago | 0 answers | 0

### 0

Question

how to find rise time of an arbitrary signal
I got a code which results a "y" signal as output and I wanted to find its rise time. I gave an arbitrary input signal "W" as sh...

3 years ago | 0 answers | 0

### 0

Question

how to find steady state error of an arbitrary signal
I got a code which results a "y" signal as output and I wanted to find its steady state error. I gave an arbitrary input signal ...

3 years ago | 0 answers | 0

### 0

Question

how to find settling time of an arbitrary signal
I got a code which results a "y" signal as output and I wanted to find its settling time. I gave an arbitrary input signal "W" a...

3 years ago | 0 answers | 0

### 0

Question

how to find characteristics of a signal
Hello guys! I got a code that gives a result "y" as output like a signal. I wanted to find it's characteristics l mean Rise time...

3 years ago | 0 answers | 0

### 0

Question

Deleting some parts of a figure
greeting guys! I got a code which result is a figure of output y with respect to t (time). I wanted to keep some part of this fi...

3 years ago | 1 answer | 0

### 1

Question

fmincon gradient of nonlinear inequality constraints must have size???
Greeting guys! I run my code and I get the following error: "Gradient of nonlinear inequality constraints must have size 4-by-1...

3 years ago | 1 answer | 0

### 1

Question

how to have function with scalar value
Greetings people! I have a code and 2 objective functions when I want to use fmincon it says function has to be scalar here is ...

3 years ago | 1 answer | 0

### 1

Question

function with myblackbox using fminunc
Hello guys! I got a Function F(y(x)) = sum (( yref-y(x))^2) and x(1) = q and x(2)=r and x=[q;r] and yref=0. I wanted to code thi...

3 years ago | 1 answer | 0

### 1

Question

How to find F(x) as a function corresponding to SSE
Hello people, I wanted to tune an MPC controller by multi-objective optimization. I got a function named F(x) corresponding to S...

3 years ago | 0 answers | 0

### 0

Question

assignment problem in a for loop to obtain states
Hey guys! I have an assignment problem with my code. clc; clear; close all; %% Time structure dt = 0.01; %% System struct...

3 years ago | 0 answers | 0

### 0

Question

assignment problem in a for loop
Hello people, I have an assignment problem and I don't know how to solve. clc; clear; close all; %% Time structure dt=0.01;...

3 years ago | 0 answers | 0

### 0

Question

How to put control energy and gain in a loop
Hello people! I got a question about constructing a control loop. I've optimized and solved my control problem using standard so...

3 years ago | 0 answers | 0

### 0

Question

produce N number of matrices through a loop
Hello people! I want to produce N number of matrices while k=1:N and I want the result in a way like h(k). I mean h(1),h(2) etc ...

3 years ago | 0 answers | 0

### 0

Question

Produce matrices through for loop
Hello people! I want to produce N number of matrices while k=1:N and I want the result in a way like h(k). I mean h(1),h(2) etc ...

3 years ago | 1 answer | 0