Community Profile

photo

Hainan Wang


Last seen: 27 dagen ago Active since 2020

Statistics

  • Revival Level 1
  • Thankful Level 3

View badges

Content Feed

View by

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

bijna 3 jaar 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....

bijna 3 jaar ago | 1 answer | 0

1

answer

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

bijna 3 jaar ago | 1 answer | 0

1

answer

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

bijna 3 jaar ago | 1 answer | 0

1

answer

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

bijna 3 jaar ago | 1 answer | 0

1

answer

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

meer dan 3 jaar ago | 0 answers | 0

0

answers

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

meer dan 3 jaar ago | 0 answers | 0

0

answers

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

meer dan 3 jaar ago | 1 answer | 0

1

answer

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

meer dan 3 jaar ago | 2 answers | 0

2

answers

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

meer dan 3 jaar ago | 1 answer | 0

1

answer

Question


Find reason for error msg of Matlab parallel calculation: Variable 't0' has been deleted from base workspace.
Hi, all. Just starting doing parallel calculation with Matlab. Below are part of the code, global t0 t1 ...... ...... t0 = 0...

meer dan 3 jaar ago | 0 answers | 0

0

answers