
Fangjun Jiang
What is a model?
Professional Interests: Model-Based Development
Statistics
RANK
22
of 260.175
REPUTATION
8.646
CONTRIBUTIONS
13 Questions
3.377 Answers
ANSWER ACCEPTANCE
76.92%
VOTES RECEIVED
1.319
RANK
of 17.890
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
why I'm getting error in MATLAB function block coding showing that parse error?
Change the last line [d1 d2] = [Po P1ref] to d1 = Po; d2 = P1ref; or [d1 d2] =deal(Po, P1ref)
4 días ago | 0
How to find a user based on full name and eight digit number
On this page, click "More" and then "Contributors" On that page, the serch box is for "Search Contributors". Type in "per isak...
5 días ago | 0
Reset Repeating Sequence Block
If you look inside the mask of the "Repeating Sequence" block, you will see it is built on top of the 1-D lookup table. To achi...
5 días ago | 1
| accepted
"brake" not working in Matlab 2021b - is there a fix or work around?
"break", not "brake"
7 días ago | 0
Href hyperlink, how to escape double quotes " ?
knowing double('"') char(34) This leads to the following, which works out properly disp('<a href="matlab:system([''explorer....
7 días ago | 0
| accepted
how to extract n elements from a vector and store them in a matrix
a = [3 6 0 3 8 4 9 1 2 4 9 3 2 5 7 0 1 2]; b = [5 6 5 3 1 3 8 2 2 3 5 7 1 2 6 1 6 7]; c = [0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0...
8 días ago | 3
which is the right syntax with find_system and blocktype
Using 'sm_lib/Joints/Weld Joint' for block type is incorrect. To find it out, do it manually first. Select the block, run get_pa...
8 días ago | 0
Merge bits on a byte simulink
Drop 8 Constant blocks, each is specified as "true" or "false". Use a "Vector Concatenate" block to make it 8x1 vector, then fee...
12 días ago | 0
How can I get the full path of my current *.mlapp file?
I think you can implement this in your code. Search for the .exe file or .mlapp file using exist('', 'file'), use which() and f...
12 días ago | 0
imoiHow do i input a matrix from mfile to simulink?
From Workspace block There are examples in the link.
13 días ago | 0
How to set global variables for simulink with matlab functions
The link is document for R2022a. You have R2017a. Open your MATLAB Function block Editor, click the "Edit Data" button.
14 días ago | 0
| accepted
How can i assure the same ode45 solver settings for Matlab and Simulink?
Choose whatever the proper settings for solver in Simulink, run simulation and save the simulation time data (through model conf...
18 días ago | 0
How to pass mask parameters in a child Matlab function ?
For those yellow blocks or any of the typical Simulink blocks, there is a block parameter dialog, where you can specify a variab...
19 días ago | 0
| accepted
"Cannot find state N in the given variable." Error when trying to start a simulation using previously saved states.
set_param(model, 'LoadInitialState', 'on') just turns on that checkmark, you need to provide the variable for the initial state....
19 días ago | 0
How can I convert a n*m matrix with its typical form to a linear form of 1*(n*m) one with comma between all elements and semicolon after each row is finished?
mat2str() but the output is a string
19 días ago | 1
How do you sum a signal in Simulink?
https://www.mathworks.com/matlabcentral/answers/1736595-cumulative-sum-in-simulink
19 días ago | 0
| accepted
Cumulative sum in Simulink
For continuous system, feed your signal to an Integrator block. For discrete system, add your signal with the output of a Unit ...
19 días ago | 0
How to create a running window inside simulink model in MATLAB/Simulink that can take some sample of input data at every 0.05 sec time instance & feed to the MATLAB program ?
This is the fundermental basic of the Simulink simulation. If nothing is constrained, set the solver to be discete, with fixed ...
20 días ago | 0
Storing workspace variables that match the specified regular expressions.
see "doc whos" s=whos('-regexp','^ex_[1]*|^i.\d+')
21 días ago | 0
| accepted
How can I access to the Model Workspace from my Simulink file from a Matlab function block
In the MATLAB Function block, click "edit data", add a data "MyVar", specify it as a "parameter" of the MATLAB Function block. ...
21 días ago | 0
How to relate between popup parameter in subsystem and switch case in matlab function?
Best way for this is to use "Variant Subsystem". See document and example There is no need to add mask anymore, although you ca...
21 días ago | 0
| accepted
how to combine sections in live script
You could do this. Move to the second section line, click the comment (%) button. Clicking the "Delete comment" button would ...
22 días ago | 0
Deleting Empty Rows in Cell Array
If the data is in a cell array, mostly likely cellfun() is needed, unless you use for-loop. strtrim() or strip() can remove the...
22 días ago | 0
| accepted
Taking Numerical Values From Char Array
a=['123456' '123123'] str2num(a)
22 días ago | 0
| accepted
delete Simulink(ex-sum) block and connect inport block to a bus using MATLAB coding
Something like this. You can follow the document of these functions. pSumBlock='PathToSumBlock'; hLine=get_param(pSumBlock,'Li...
25 días ago | 0
| accepted
Passing one by one values of matrix in Simulink
Data=(1:1142)'; time=0.01*(0:1141)'; Use the "From Workspace" block in your Simulink model, specify the data as [time, Data], ...
27 días ago | 0
How to change a global variable name in simulink (containing Data Store Memory)
On the MATLAB Function block Editor, click "Edit Data" and rename another "A" there.
28 días ago | 0
| accepted
How to input this vector in simulink ?
Use the "From Workspace" block, specify the data as [t', phi'], connect it to a Scope. But the value in "t" is not incremental,...
alrededor de 1 mes ago | 0