Community Profile

photo

Fangjun Jiang


2.349 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
slprj folder gets too large
You can just delete the \slprj folder. It could be that the folder has accumulated many temparory files for many models for a lo...

alrededor de 3 horas ago | 0

Answered
Copy Figure in high quality
In my experience, using Metafile (or sometimes called enhanced metafile) has better quality shown in Word and later in PDF file....

1 día ago | 0

Answered
could anyone help me how to group the numbers into sets
How do you want to group your sets? See the help or doc of mat2cell. There are examples. You should be able to figure it out.

1 día ago | 0

Answered
Start Simulink Model with App Designer and run simultaneously
f14; set_param('f14','SimulationCommand','start'); set_param('f14','SimulationCommand','stop')

3 días ago | 0

| accepted

Answered
How can we set parameter values like Minimum or Maximum for a Slider and bind it to a tunable block like a Constant, using matlab commands?
"abc" marks the string data type, which is introducted in R2016b. You can just use 'Binding' in R2015b.

4 días ago | 0

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

7 días 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.

8 días 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...

11 días ago | 0

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

11 días 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

14 días ago | 0

Answered
How to write a Questions that requires Yes or No asnwer
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...

15 días ago | 0

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

15 días 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 ...

15 días ago | 0

Answered
How to write a Questions that requires Yes or No asnwer
wall ='Y' while wall == 'Y' building_id = input('Enter the building ID >', 's'); wall = input('Enter a Wa...

15 días ago | 0

Answered
Simulink Pop Up Message
Use Assertion block.

15 días ago | 0

| accepted

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

15 días ago | 0

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

16 días 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

16 días ago | 2

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

17 días ago | 0

| accepted

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

21 días 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...

22 días 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 ...

22 días ago | 0

| accepted

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

24 días 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...

24 días 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...

24 días 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes ago | 1

| accepted

Load more