Community Profile

photo

Fangjun Jiang


Last seen: 7일 전 2011 이후 활성

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

Statistics

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

배지보기

Content Feed

보기 기준

답변 있음
How do I restore matlab to original settings?
In MATLAB, run "restoredefaultpath" to see if you can get your Simulink back to normal. Then try to re-install SpeedGoat.

7일 전 | 0

답변 있음
Where to find Variable Size for output of Matlab function in Simulink
double click the MATLAB Function block to open the code editor, Click "Edit Data" button/icon, select the variable on the left c...

7일 전 | 0

| 수락됨

답변 있음
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 ...

17일 전 | 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. ...

24일 전 | 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...

24일 전 | 0

| 수락됨

답변 있음
how to rearrage the matrix?
[objectpointsepoch1(:,2); objectpointsepoch1(:,3)]

27일 전 | 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...

29일 전 | 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...

29일 전 | 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...

30일 전 | 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 ...

약 1달 전 | 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 ...

약 1달 전 | 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...

약 1달 전 | 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...

약 1달 전 | 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...

약 1달 전 | 0

| 수락됨

답변 있음
Plotting in a specific range
index=Res(:,1)>=20; plot(Res(index,1),Res(index,3))

약 1달 전 | 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,:)=[];

약 1달 전 | 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

약 1달 전 | 0

답변 있음
Get Simulation Phase of Simulink Model
Check the status of a simulation. get_param('ModelName','SimulationStatus') The software returns 'stopped', 'initializing', 'r...

약 1달 전 | 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 ...

약 1달 전 | 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...

약 2달 전 | 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]'

약 2달 전 | 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()...

약 2달 전 | 0

더로드