Community Profile

# Hainan Wang

##### Last seen: Today
11 total contributions since 2020

#### Hainan Wang's Badges

View details...

Contributions in
View by

Convert the symbolic expression into the expression which can be put on the RHS of an ODE.
I work this out with odefunction. Guess I will answer this myself. clear all clc %% Part1.Define symbolic variables nx ...

7 days ago | 0

Question

Why do I receive this error msg when solving a simple DAE with odefunction?
When I solve this simple DAE with three variables y1(t), y2(t), y3(t), y1' = y2' + y1; y2' = y1; y3 = y1 + y2; y1(0) = 1....

10 days ago | 1 answer | 0

### 1

Question

Convert the symbolic expression into the expression which can be put on the RHS of an ODE.
I have a 2x2 ODE dx1dt = f[1];dx2dt = f[2](see Maple Code at the end for f[1], f[2]). The sensitivity equation is given as dSdt(...

1 month ago | 1 answer | 0

### 1

Question

Efficient way to evaluate multiple logic expression as in 'if' condition
I am running an iterative algorithm, which will generate a row vector with 10 parameters. After one iteration, the new row vecto...

2 months ago | 1 answer | 0

### 1

Question

Explanation for formula calculating step size for finite difference used in fmincon
When I view the page of ‘fmincon’, one option in optimset is ‘FiniteDifferenceStepSize’. The descriptions are copied below: Fi...

2 months ago | 1 answer | 0

### 1

Question

Why same varible shown twice in Simulation Manager with parsim ?
I want to perform a parametric sweep with parsim. The variable I want to sweep is t0, the ‘Start Time’ in Simulink model, from 0...

8 months ago | 0 answers | 0

### 0

Question

How does the method loadVariablesFromMATFile from Simlink.SimulationInput object work?
I have a Simulink model 'input_checkN1P10test1' and want to run parallel computing with various settings of parameters of this m...

8 months ago | 0 answers | 0

### 0

Question

Save the Simulink model without saving model workspace
I want to save the Simulink model "model1.slx" itself, not saving "model1.slx" within a new model. I don't want its model worksp...

9 months ago | 1 answer | 0

### 1

Question

How to save Simulink model without model workspace saved
I have a Simulink model named “input_check.slx” and I want to load model parameters loaded from an external .mat file. After I r...

9 months ago | 2 answers | 0

### 2

Question

Find reason for this warning msg: Variable 'hws' originally saved as a handle cannot be instantiated as an object and will be read in as a uint32.
load_system('input_check') hws = get_param('input_check', 'modelworkspace'); hws.DataSource = 'MAT-File'; hws.FileName = 'slx...

11 months ago | 1 answer | 0