Community Profile

photo

Fangjun Jiang


Last seen: Today
2.998 total contributions since 2011

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

Contact

Fangjun Jiang's Badges

  • 36 Month Streak
  • Revival Level 3
  • First Review
  • Ace
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Force Simulink Coder to regenerate code and rebuild a model
rtwbuild('rtwdemo_mdlreftop','ForceTopModelBuild',true)

26 Minuten ago | 0

Answered
How can I open the Code-Generation Report of the hdlcoder
See this Q&A. https://www.mathworks.com/matlabcentral/answers/278856-how-do-i-open-the-code-generation-report-after-it-s-been-c...

3 Tage ago | 0

| accepted

Answered
sim('') command with supressed ";" still displays a variable on command window (it's spamming it)
You need to go to your Simulink model to find the source of the assignment line "y=something" where ";" is not present. It could...

3 Tage ago | 0

| accepted

Answered
Can one define a "directory" as a "variable"?
directory='c:\myfolder'; filename='myfile.xlsx'; readtable(fullfile(directory,filename));

7 Tage ago | 0

| accepted

Answered
What is the ID of styecheck jc_0803 ??
MA check for jc_0803 in introduced in R2020a. See at the bottom of the link. https://www.mathworks.com/help/releases/R2020a/sim...

7 Tage ago | 0

| accepted

Answered
How can find all stateflow objects which used function?
If you use "MATLAB action language" in your chart, then the floor() function is the same as the floor() function provided by MAT...

7 Tage ago | 0

Answered
Check that point doesnt lay on line in Simulink block diagram
Checking whether a point lays on any existing line will be very difficult. The answer to the OP's question seems to be utilizing...

7 Tage ago | 1

| accepted

Answered
How to count the amount of times a specific number appears on an output wave?
Compare your signal with the value of 2, if greater than 2, output true, otherwise false. The output is a square wave. Use this ...

8 Tage ago | 0

Answered
Syntax error in Simulink
Define a set of example value for u(1) to u(7) in MATLAB, copy and past your expression picece by piece in small parts and execu...

9 Tage ago | 0

Answered
Format output with constant display values
%% X2=5.6; period=60; fprintf('2*pi*%g/%g\n',X2,period);

11 Tage ago | 0

Answered
Tic, Toc Behavior
for the sake of fair comparison, the code below should give you reasonable results %% TicTocLoop=0; TicTocValue=0; for i =...

11 Tage ago | 0

| accepted

Answered
How to load a cell array into a Simulink model?
According to this: Data Types Supported by Simulink, neither "cell array" nor "function handle" is mentioned. I don't know how y...

13 Tage ago | 0

Answered
My simulink model seems to not receiving proper variables from workspace or not returning proper value to workspace.
I am trying to find the document link but could't. I thought it was in "doc sim". The problem could be explained by the way sim...

17 Tage ago | 0

| accepted

Answered
Simulink library missing from browser
Run these two lines in Command Window. What did you get? ver simulink open simulink.slx

18 Tage ago | 1

| accepted

Answered
How to create/access and update global variables in Simulink using Data Store Memory block
Follow the example here. https://www.mathworks.com/help/releases/R2020b/simulink/ug/using-global-data-with-the-matlab-function-...

18 Tage ago | 0

| accepted

Answered
Programmatically make library targetlink compliant
I used to have it. I believe the command is tl_prepare_system(). See the document in your TargetLink installation.

18 Tage ago | 0

Answered
Access Simulation Time in Simulink Model
The Clock block provides the time.

19 Tage ago | 1

| accepted

Answered
PAUSING on function call - matlab
The call of another function might be dependent on a particular condition inside this function. So it is not ideal or practical ...

20 Tage ago | 0

Answered
How to draw only a part of a known curve?
x=1:0.1:10; y=sin(x); index=and(x>3, x<6); plot(x(index),y(index))

20 Tage ago | 0

Answered
Simulink signal sequence from Matrix with feedback input
Have a logic to determine if the output value meets a target value (within threshold or steady state for a period of time), outp...

20 Tage ago | 0

| accepted

Answered
fopen just works inside of a loop
Whatever data you need from the text file, you could read it once, store it in a variable and use it in the loop. You wouldn't d...

21 Tage ago | 0

Answered
Simulink function to detect Step time
Use the rising edge of the step signal to trigger a triggered subsystem, which contains a Clock block. When it is triggered, it ...

21 Tage ago | 1

| accepted

Answered
Matlab Function, switch case Problem
This is a floating-point data equal or non-equal comparision problem. Do this to get an idea. >> 1-1/3==2/3 ans = logical ...

21 Tage ago | 1

| accepted

Answered
Activation Date and the Validation Date
I used to have this type of license. Apparently, Mathworks periodically "validate" the license, just to make sure everyone is ho...

25 Tage ago | 0

Answered
How does one make clickable links to execute MATLAB commands from Simulink?
Run 'sl_subsys_semantics' in Command window to open the example model. Any block can be double clicked to open another model. Ri...

25 Tage ago | 0

Answered
PID Control: Varying saturation range?
Saturation Dynamic

26 Tage ago | 0

| accepted

Answered
Is there way to configure AUTOSAR components programmatically?
AUTOSAR Programmatic Interfaces

etwa ein Monat ago | 0

Answered
size mismatch in matlab function block
[1 2]*[2 2; 2 2] is correct. [1 2].*[2 2; 2 2] is wrong (without implicit expansion)

etwa ein Monat ago | 0

| accepted

Answered
Unable to resolve the name ('Filename')
n_table= readtable('Veri.xlsx')

etwa ein Monat ago | 0

| accepted

Answered
Simulink, Zero-Pole block
Specify "[]" for "Zeros".

etwa ein Monat ago | 0

| accepted

Load more