Community Profile

photo

Fangjun Jiang


Last seen: Today Active since 2011

What is a model? Professional Interests: Model-Based Development

Statistics

All
  • 36 Month Streak
  • Revival Level 3
  • First Review
  • Ace
  • Thankful Level 3
  • Knowledgeable Level 5
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
Algebraic loop error, how to solve?
There is no algebraic loop here. Giving what ever value to DELTA_U(k), "f" can be calculated without problem. If you feed the o...

3 days ago | 0

| accepted

Answered
Ramp rate %/min limiter in simulink
Feed constant value of 0.05 to "up" and -0.05 to "lo". If you want to prevent a value from increasing more than 5% per minute, t...

3 days ago | 0

Answered
I want to access signal data in Subsystem from mask callback without using the base Workspace
Refer to this Q&A. https://www.mathworks.com/matlabcentral/answers/2003487-how-to-plot-simulation-results-in-a-gui-while-the-si...

3 days ago | 0

Answered
Matrix Data Results Explanation
The code looks good and shows good programming flow to use logical index. It will be very lengthy to explain why the result show...

6 days ago | 1

| accepted

Answered
Way to disable Simulink blocks at compile time using a variable in the workspace
This is the exact use case for Variant Subsystems. https://www.mathworks.com/support/search.html/videos/using-variant-subsystem...

6 days ago | 0

Answered
How to use save in matlab function block ?
The MATLAB Function block will be executed at every simulation step, so if save() works, it will create many .mat files, each is...

6 days ago | 0

| accepted

Answered
How to make Simulink read a MatLab variable every 5 seconds?
Use the "MATLAB Function" block to integrate your MATLAB algorithem directly into a Simulink model.

7 days ago | 0

Answered
Multiple output in Switch block
Using your example, just specify the top input as constant [1, 2,3], the bottom input as constant [4,5,6]. The output will be a ...

10 days ago | 0

Answered
graphical visualization of input parameters collected in a struct/array
Use the built-in variable editor is sufficient to visualize struct array. Just run this at the Command Window open params

13 days ago | 0

Answered
How to get values of Scope and Port of "Data data" dialog box using API's?
open_system('sldemo_autotrans'); sf=sfroot; ch=sf.find('-isa','Stateflow.Chart'); d=Stateflow.Data(ch); d.Scope='Output'; d...

16 days ago | 0

| accepted

Answered
Is there a specific standard for the rows and columns of a struct?
It is described in the Help document of struct(). The size of the resulted struct array is the same as the size of the cell arr...

20 days ago | 0

Answered
How can I view under mask of the block "Orbit Propagator"
It does not seem to be a masked block. Double click the 'Attitude Profile (Nadir Pointing)' block, it opens the parameter dialo...

20 days ago | 0

| accepted

Answered
How to plot simulation results in a GUI while the simulation is running?
https://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html https://www.mathworks.com/help/simulink/...

21 days ago | 1

| accepted

Answered
Turn Off a Lamp Block after 10s
https://www.mathworks.com/help/stateflow/ref/after.html

22 days ago | 0

Answered
I am working with Galois field. I obtained all the 256 values, and now i want to make the matrix form of the obtained values.
results = zeros(1,256); for x_gf = 0:255 e = conv(a, x_gf); f = conv(c, x_gf); h = e + b; j = f + d; ...

22 days ago | 0

Answered
how to give initial condition to simulink function variables
A Simulink Function is like a Simulink model. Depending on the blocks that are used inside the Simulink Function, some blocks ha...

23 days ago | 0

Answered
How to programmitcally edit the "Goto Tag" in "From" block in simulink
get_param(PathToTheBlock,'GotoTag'); set_param(PathToTheBlock,'GotoTag','B')

24 days ago | 1

| accepted

Answered
header files from simulink data dictionary
Use Simulink Data Dictionary API, open the SLDD, get the bus object, get the "headfile" property https://www.mathworks.com/help...

24 days ago | 0

Answered
Open system mask parameters
If the block has been masked, the command to open the masked parameters is open_system(block)

24 days ago | 0

Answered
function call with on off control in simulink
You could use the Pulse Generator block, instead of the Stateflow chart, to generate the "101010 signal graph".

24 days ago | 0

Answered
Hot to get Signal path and block port number from Simulink model
open_system('f14'); lines=find_system('f14','FindALl','On','type','line','name','w'); get(lines(1),'SourcePort')

27 days ago | 0

Answered
Can a stand alone version be used by anyone?
Yes. It says "royalty-free". MATLAB Compiler enables you to share MATLAB programs as standalone applications and web apps. With...

29 days ago | 0

Answered
While importing a .mat file into simulink using the "From File" block, I lose the first data point.
The "From Workspace" block is used to import data into Simulink. It can specify sample time. The "To Workspace" block is usedd ...

30 days ago | 0

Answered
Update variables by simulink conditional statement
Inside the If Action subsystem, double click the Outport block, there is an option for "Output when disabled", choose "reset" in...

1 month ago | 0

| accepted

Answered
error in electric vehicle simulation in Simulink
Press Ctrl+E to bring up the configuration parameters, Solver, set the Minimum step size from 2.0 to at least 0.5, or better at ...

1 month ago | 0

Answered
Variant control 'variant_generation' of variant block
The error message is as clear as it gets. Open the example model of the Variant Subsystem block to learn its proper use. The di...

1 month ago | 0

Answered
Programmically re-order model reference inports in Simulink
This is interesting. A user could drag and drop the ports, to a different order or even to the top, bottom or right side of the ...

1 month ago | 0

Answered
how to programtically add junctions and default transition in state flow and connect them
transition = Stateflow.Transition(ch); transition.Source = [];% this makes it default transition. transition.Destination = j2;...

1 month ago | 0

| accepted

Answered
transform the cell (50x95 cell) into the matrix 'in' (50x95x3 uint8)
cell2mat(out)

1 month ago | 0

| accepted

Load more