Community Profile

photo

Fangjun Jiang


Last seen: Today
3,213 2011 年以降の合計貢献数

What is a model?
Professional Interests: Model-Based Development

連絡する

Fangjun Jiang's バッジ

  • 36 Month Streak
  • Revival Level 3
  • First Review
  • Ace
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
Initializing 1/2 of a row with one value and the other half with another
You mis-understood it. The code involves built-in functions ones() and zeros(). The input arguments are size of the matrix, not ...

8日 前 | 0

回答済み
Error in port widths or dimensions Error.
If your t=sin(0:0.01:30), which is 1x3001 double, you need to make it a column vector and then use the "From Workspace" block. ...

16日 前 | 0

| 採用済み

回答済み
How to show the Unit parameter in the signal attrbutes of a constant block?
There is no "unit" property at the Constant block. What you can do is to define a Simulink parameter object. A=Simulink.Paramet...

16日 前 | 0

| 採用済み

回答済み
how to rearrage the matrix?
[objectpointsepoch1(:,2); objectpointsepoch1(:,3)]

19日 前 | 1

| 採用済み

回答済み
安装waijung第三方工具箱每次打开matlab出现路径警告
I had the same problem and this probem started in R2020a. Every time you started MATLAB R2020a, such a temporary folder is aut...

21日 前 | 0

回答済み
Programmatically change user defined Library objects in Simulink model
In the first part of your code, add_block() is not used properly. You need to specify the full path of both the source and desti...

21日 前 | 1

| 採用済み

回答済み
how to move the currently selected port in s function builder
You have only one port so nowhere to move. The buttons are on the left. Insert one more and the other three buttons will be avai...

22日 前 | 1

回答済み
Signal Simulink from / to Workspace
The data in the first column of SigData is the time (or time step) info. It must be incremental (or non-descreasing). Based on ...

22日 前 | 0

| 採用済み

回答済み
Syntax Error in Simulink Fcn block
Provide values for every variable in the formula, including nb, Tfault, Tclear Provide an instance value of u Run the formula ...

22日 前 | 0

| 採用済み

回答済み
Operations with function handles / anonymous functions
function1 = @(x) x(1)^2+5 function2 = @(x) 2*x(2) function3=@(x) function1(x)+function2(x) function1([1 2]) function2([1 2...

22日 前 | 1

回答済み
Ugrade Advisor: Where is the Update button?
Switch back to your Simulink model, press Ctrl+D to update the model. In R2020a, you will find the button in the center of the...

23日 前 | 0

| 採用済み

回答済み
Get full path of referenced models
ModelFile=get_param('ModelBlock','ModelFile'); File=which(ModelFile); There is no full path info saved with the Model block, b...

23日 前 | 0

回答済み
Plotting in a specific range
index=Res(:,1)>=20; plot(Res(index,1),Res(index,3))

23日 前 | 0

| 採用済み

回答済み
How to delect the zero values in table
a=[1 2 3;0 0 0 ; 1 0 2]; index=all(a==0,2); a(index,:)=[];

23日 前 | 0

回答済み
string variable arguments in set_param
p1x2(1,1) is cell, use p1x2{1,1} or define onOffTable = ["on","off"] if your MATLAB version support string data type

24日 前 | 0

回答済み
Get Simulation Phase of Simulink Model
Check the status of a simulation. get_param('ModelName','SimulationStatus') The software returns 'stopped', 'initializing', 'r...

28日 前 | 1

| 採用済み

回答済み
How a Integrator followed by a saturation block is different than a limited integrator?
I think it can be explained. An Integrator followed by a Saturation. The integrator just does its regular integration and the ...

30日 前 | 0

回答済み
How to solve a system of ODE in Simulink?
If the model has already been developed in MATLAB, you could use the MATLAB Function block

約1ヶ月 前 | 0

回答済み
Join two sprintf into one and show it on static field
The second set(handles.text3, 'string',...) will over-write the first one. You need to combine the string and run set() once. ...

約1ヶ月 前 | 0

回答済み
How can I divide plot between different scope windows in a scope block?
You have to specify 2 input ports, Mux three and feed into port 1, Mux the other three and feed into port 2.

約1ヶ月 前 | 0

| 採用済み

回答済み
Add missing numbers between elements in an array
%% Var1= [1 1 2 4 5 7 7 7 8 10 11 13 14 14 17 17 17 17 18 20]; Var2= [0.5 0.3 0.1 0.6 0.2 0.4 0.8 0.9 0.3 0.2 0.1 0.4 0.8 0.7 ...

約1ヶ月 前 | 0

| 採用済み

質問


Is there a way to "Save" a link to a MATLAB Answer?
I saw a question. I know the answer because I remember answering a similar one before and it was accepted. But the answer is le...

約1ヶ月 前 | 1 件の回答 | 2

1

回答

回答済み
extract all points from curves
x= [1,2,3,4,5,6,7,8,9,10] y= [1,2,3,4,5,6,7,8,9,10] in=[1.2,2.3,3.5] out=interp1(x,y,in)

約1ヶ月 前 | 0

| 採用済み

回答済み
How to run Simulation for certain amount of time
Specify the start time and stop time either directly through numerical value, or through variables and then set the value for th...

約1ヶ月 前 | 1

| 採用済み

回答済み
How can I reset the time reference in a triggered subsystem in Simulink?
This turns out to be harder that it seems. Branch and connect the trigger signal to the external reset port of a resetable Int...

約1ヶ月 前 | 0

| 採用済み

回答済み
When using the 'set_param' function, how do I ensure that I format the parameter value properly when the parameter value is a 1xn array?
how about this a=1;b=2;c=3 mat2str([a,b,c]) ans = '[1 2 3]'

約1ヶ月 前 | 0

| 採用済み

回答済み
Read specific value from XML-file
The short answer is to use xmlread(). I've done it before. The actual code depends on the schema. You may also try xml2struct()...

約1ヶ月 前 | 0

回答済み
Matlab zoom window behavior in recent years
That is true but I think there is a benefit. It allows you to do x-only or y-only zoom easily. Regarding zoom outside of the li...

約1ヶ月 前 | 0

回答済み
Start/Stopp in one Button
For fun, one-liner uibutton('Text','Start','ButtonPushedFcn','set(gcbo,''text'',setdiff(["Start","Stop"],get(gcbo,''text'')))')...

約1ヶ月 前 | 0

Load more