Community Profile

photo

Fangjun Jiang


2.346 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
Start Simulink Model with App Designer and run simultaneously
f14; set_param('f14','SimulationCommand','start'); set_param('f14','SimulationCommand','stop')

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

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

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

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

9 Tage ago | 0

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

9 Tage 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

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

13 Tage ago | 0

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

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

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

13 Tage ago | 0

Answered
Simulink Pop Up Message
Use Assertion block.

13 Tage ago | 0

| accepted

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

13 Tage ago | 0

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

14 Tage 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

14 Tage ago | 2

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

15 Tage ago | 0

| accepted

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

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

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

20 Tage ago | 0

| accepted

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

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

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

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

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

etwa ein Monat 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...

etwa ein Monat 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...

etwa ein Monat 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...

etwa ein Monat 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...

etwa ein Monat 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...

etwa ein Monat ago | 1

| accepted

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

etwa 2 Monate ago | 1

Load more