Community Profile

photo

Fangjun Jiang


2,344 total contributions since 2011

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

Contact

Fangjun Jiang's Badges

  • 24 Month Streak
  • Revival Level 2
  • Ace
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
How can I use Bus creator signal and Memory Block with initial conditions together?
"LettersBus" here is just a signal label, or the name of the bus. You can't assign it as the initial condition of the Memory blo...

3 days ago | 1

| accepted

Answered
Port Width or Dimension Error: Signal wire adding an additional element in a simulink
Check the dialog of the Mux block. It could be specified as [1 2]. Change it to be 2.

4 days ago | 0

Answered
Simulink S-function builder reading inputs
"u" is usually referred as inputs, "y" is usually referred as outputs. You need to go through the S-Function Builder Dialog Box...

7 days ago | 0

Answered
Recursively save referenced models
Try option 'SaveDirtyReferencedModels' doc save_system

7 days ago | 0

Answered
Can't open example openExample('stats/TrainARegressionEnsembleExample')
You need to have the "Statistics and Machine Learning Toolbox". Run "ver stats" to check

10 days ago | 0

Answered
edit no longer needed
You need to wrap the code in a function so you can use "return" to terminate the program based on the input. function test wa...

10 days ago | 0

Answered
Matrix function [row:column] help
It must mean to be RowColumn = [row,column]

10 days ago | 0

Answered
May be a Phishing Mail received?
GetFeedback Inc. was accquired by SurveryMonkey. Both are legit companies providing online survery services. However, someone ...

10 days ago | 0

Answered
edit no longer needed
wall ='Y' while wall == 'Y' building_id = input('Enter the building ID >', 's'); wall = input('Enter a Wa...

10 days ago | 0

Answered
Simulink Pop Up Message
Use Assertion block.

11 days ago | 0

| accepted

Answered
How to delay signal input ?
A step function controls a swithch block to switch the signal.

11 days ago | 0

Answered
reshape 3d to 2d array
squeeze() transpose()

11 days ago | 1

| accepted

Answered
how to find the line number of a point in a vector
a=diff(i) find(a==1) find(a==-1) adjust by 1

12 days ago | 2

Answered
How to update function's variables each sample time
Use persistent variables Persistent

13 days ago | 0

| accepted

Answered
Using "from file block" not working
Change your simulation "Stop Time" from 10 (default) to whaever you want.

17 days ago | 0

Answered
Call a Simulink Function from a Callback Button
I would think this is not possible. The callback function of the button needs to be MATLAB based. In other words, if the functio...

17 days ago | 0

Answered
The Computed sample time
Based on your specification of Period (secs) and Pulse Width (% of period), Simulink calculated that the time incremental needs ...

17 days ago | 0

| accepted

Answered
ntwin32.mak not found - R2018b w/ Visual Studio 2017 Pro
Run "mex -setup" and follow instructions.

19 days ago | 0

Answered
Evaluate function real-time in Simulink
Open the MATLAB function, click "Edit Data", specify the "size" of output GX and GY. Most common is the change from "-1" (inheri...

20 days ago | 0

Answered
Using 2D array in 'From workspace' block in simulink
Click "Help" button on the dialog of the "From Workspace" block, open the example model for "Read 2-D Signals in Structure Forma...

20 days ago | 0

Answered
Model initialization from a callback in the mask of simulink Block
There are a few terms involved here. You need to try it out to see if it is possible to achieve what you desire to do. The point...

25 days ago | 0

Answered
How to find signals, which are defined in matlab-workspace, but not used in the SimulinkModel?
Right click on your model, select "Find Reference Variables". Highlight all referenced variables, right click, select "Export Se...

28 days ago | 0

| accepted

Answered
Is there a way to suppress Simulink from being brought to front of screen?
If you used laod_system(), then the Simulink model is not supposed to be visible. open_system() will load it and make it visible...

1 month ago | 1

| accepted

Answered
How to use the simulation time in MATLAB
Create a 1Hz trigger (e.g. Pulse Generator with amplitude of 1 and period of 1), feed it to a "Not" block and then an "Assertion...

1 month ago | 0

Answered
Simulink: Matlab function block for Charge controller of a solar home system.
Keep in mind that the MATLAB Function block executes once at every simulation step. So I don't think you should use the while-lo...

1 month ago | 1

| accepted

Answered
simulink real time task excution time
In your task, you might have some conditional statements. If the condition is met, certain codes or blocks are executed thus tak...

1 month ago | 0

Answered
System Design Description Report in 2018b
File > Reports > System Design Description is right at the menu of a Simulink model in MATLAB R2018b. Make sure you have the Sim...

1 month ago | 1

| accepted

Answered
Convert single string with many numbers to vector
a=str2num(hue);

2 months ago | 1

Answered
Save an output each simulation
In your model, you have a "To Workspace" block logging four signals and writing to a workspace variable "simout". Of course, the...

2 months ago | 1

| accepted

Answered
Using a bus-signal as an Input into a 'Model'-Block in Simulink
see the demo model: sldemo_mdlref_conversion

2 months ago | 0

Load more