Community Profile

photo

Fangjun Jiang


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

ungefär 4 timmar 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.

ungefär 6 timmar ago | 0

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

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

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

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

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

10 dagar ago | 0

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

10 dagar 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

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

14 dagar ago | 0

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

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

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

14 dagar ago | 0

Answered
Simulink Pop Up Message
Use Assertion block.

14 dagar ago | 0

| accepted

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

14 dagar ago | 0

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

15 dagar 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

15 dagar ago | 2

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

16 dagar ago | 0

| accepted

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

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

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

21 dagar ago | 0

| accepted

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

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

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

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

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

ungefär en månad 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...

ungefär en månad 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...

ungefär en månad 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...

ungefär en månad 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...

ungefär en månad ago | 0

Load more