Community Profile

photo

Fangjun Jiang


Last seen: Today
2,972 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
Is there way to configure AUTOSAR components programmatically?
AUTOSAR Programmatic Interfaces

1 hour 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)

22 hours ago | 0

| accepted

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

23 hours ago | 0

| accepted

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

1 day ago | 0

Answered
Data store memory storage class
Create a Simulink.Signal object in the workspace and you can use DataStore Read/Write block anywhere in the model. You can speif...

3 days ago | 0

| accepted

Answered
Track Simulink slx Files
Simulink .slx file IS binary format so you really don't have a choice. Previous .mdl file is textual but it is not wise to rely ...

3 days ago | 0

Answered
How to save the time of the simulink simulation on matlab?
Use the Clock block in your Simulink model. It outputs the simulation time. Do whatever you want.

3 days ago | 0

Answered
Delete parts of plotted figures?
use patch() or fill()? This one does part of it. patch(xp,yp,'white')

6 days ago | 0

Answered
Programming Problem on code
t1 doesn't contain t=0.2 and t=0.6. Not sure if it is correct or there is a typo. You can do repmat(y,1,10) or as many times as...

6 days ago | 0

Answered
Matrix input/output to a Matlab function block in simulink
Use a Constant block, specify the value as the variable in the base workspace, then you will be able to use it, no matter what i...

6 days ago | 0

Answered
How to make input values go into a matrix set?
InputStr= input(' Enter coordinate point location (x,y)','s'); Command Window: >> 2 , 4 PointA=str2num(InputStr)

8 days ago | 1

Answered
i dont know what is this answer
The value is too big to show "real number" >> a=1000 a = 1000 >> format ShortEng >> a a = 1.0000e+003

8 days ago | 0

| accepted

Answered
block power of 3
Product block with 3 inputs Fcn block specified as "u^3"

8 days ago | 0

Answered
How to correctly set instance parameters of model reference?
In the referenced model, you need to create workspace variables, set 'ParameterArgumentNames' first as described in the document...

8 days ago | 1

Answered
How to extract matrix with different starting index for each row?
%% Orig=transpose(reshape(1:20,5,[])) StartPos=[2;1;3;2]; Wid=3; row=repmat((1:size(Orig,1))',1,Wid); col=StartPos+(0:Wid...

9 days ago | 1

| accepted

Answered
Error while running Cyclomatic complexity check
Press Ctrl+D to update the mode, or better, run a simulation first to make sure your model has no errors first.

9 days ago | 0

Answered
help on simulink input
You don't remove the Constant block. You "Connect" the Slider to the Constant block. Double click the Slider, Drag the Constant...

9 days ago | 0

| accepted

Answered
Use Simulation Time of Simulink in Matlab function when threshold is exceeded
Use Step block to specify time and value. This is your threshhold. Use Comparator block to compare your incoming signal with t...

9 days ago | 0

Answered
Round a signal in simulink?
'simulink/Discontinuities/Quantizer'

9 days ago | 0

Answered
Rate Transition in If-action Subsystems
Let's say your whole model is executed at every 0.1s. At every 0.1 second, the condition is checked and the "If-action" subsyste...

9 days ago | 1

| accepted

Answered
How to get Simulation Status correctly?
Use set_param('vdp','SimulationCommand','continue') to change the simulation status, other options are 'start', 'pause','stop'. ...

9 days ago | 0

Answered
Plot not showing line fully
Might it contain nan? plot([1:3,nan,nan,4:6])

9 days ago | 0

Answered
Problem with conection port/ input port in subsystem
Most likely, you need this "Physical Signal to Simulink Signal Convert" block. https://www.mathworks.com/help/releases/R2020b/p...

10 days ago | 0

Answered
Dot indexing is not supported for variables of this type when trying to write value into static text box
set(hObject, 'String', num2str(value)) see this comment ? % hObject handle to edit1 (see GCBO) % handles empty - ha...

13 days ago | 0

Answered
Lookup value in one array based on interpolated point in another?
interp1() in MATLAB "1-D Lookup Table" block in Simulink.

13 days ago | 0

| accepted

Answered
How can two people work at the same time at a code
This is a typical source control issue. Take a look at GitHub.com. There is free version available. MATLAB supports Git.

13 days ago | 1

Answered
how to get keyboard in matlab
use function input()?

15 days ago | 0

Answered
simulink models with iPad
Would MATLAB Online be a solution?

15 days ago | 0

Answered
How to find each model uses given block?
You will need to go through a loop, open or load each model, find if particular block exists and then close the model. open_sys...

15 days ago | 0

Answered
How to divide an array into sperate vectors.
use reshape() to transform it to 4x250 or 250x4 then loop through row or column

16 days ago | 0

| accepted

Load more