Community Profile

photo

Fangjun Jiang


Last seen: 1日 前 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

表示方法

回答済み
Error:Brace indexing is not supported for variables of this type.
Run "dbstop if error" in MATLAB Command Window first and then run your optimization. Hopefully you will be able to see the line ...

1日 前 | 0

回答済み
provide Input port data during simulation
https://www.mathworks.com/help/simulink/ug/signal-loading-techniques.html#bu110x_-1

2日 前 | 0

回答済み
How to vary Gain in Simulink dependent on input's amplitude and phase during runtime ?
Use the Product block. The Gain block is an operation of multiplication, right?

2日 前 | 0

回答済み
How to delete a node from DOM object?
use delete() and then write the xDoc to an XML file.

2日 前 | 0

回答済み
How to access Simulink Model callbacks like PreLoadFcn, InitFcn, StopFcn from matlab command window?
Model='f14'; open_system(Model) get_param(Model,'PreLoadFcn'); set_param(Model,'PreLoadFcn','YourFunctionName')

2日 前 | 0

回答済み
Neglecting difference between two values if it is very small so that value1= value2
To compare element by element, abs(C) < Tolerance To compare the two vectors as a whole, all(abs(C) < Tolerance) or use isme...

3日 前 | 0

回答済み
How to loop through structure with words?
fn=fieldnames(reflectance.nhy1); for k=1:length(fn) reflectance.nhy1.(fn{k}) end

3日 前 | 0

| 採用済み

回答済み
write two inputs to interpreted MATLAB block
Specify as "mod1(u(1),u(2))". Look at the Help of the block.

8日 前 | 0

| 採用済み

回答済み
Why is the look-up table in Simulink must faster than the interp3 function in Matlab script?
Might it be that interp3() is a M-script function, not a built-in (or written in C) function? Try to specify all the optional ...

8日 前 | 0

回答済み
What does the Following mean in Simulink
That is the Index Vector block. "Ldq" is a vector. The above math is: Out1=In1*Ldq(2)/Ldq(1)

9日 前 | 1

| 採用済み

回答済み
How can i have a loop in every step time in Simulink?
Use For Iterator Subsystem

16日 前 | 0

| 採用済み

回答済み
Insufficient number of outputs from right hand side of equal sign to satisfy assignment
nonlcon() is a defined function so fun=@nonlcon should be enough. It might be easier if the function has only one return variabl...

23日 前 | 0

回答済み
theoretical framework of support for S-Functions
S-Function is used broadly. doc: web(fullfile(docroot, 'simulink/slref/sfunction.html')) example: open_system('sfundemos')...

24日 前 | 0

回答済み
error in repeating sequence
It's better to provide the error message. I assume the error is about the time data that you provied. There are duplicated val...

約1ヶ月 前 | 0

回答済み
Sizeof double float int etc
Look at the .bytes returned by whos() a=false(5); aInfo=whos('a') b=zeros(5); bInfo=whos('b')

約1ヶ月 前 | 0

回答済み
Is There a Way to Find all Shadowed Functions on the matlabpath?
I am not aware of any direct method. On the other hand, Files=dir('**/*.m') will give you all the M-file names including all sub...

約1ヶ月 前 | 0

| 採用済み

回答済み
How do i know which Simulink Libraries are used in the Program?
license('inuse') tells the "toolboxes" that are used. What you need is libinfo('ModelName'). Most likely, 'Delft_Tyre_dtlib' is...

約1ヶ月 前 | 1

回答済み
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.

約1ヶ月 前 | 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...

約1ヶ月 前 | 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 ...

約2ヶ月 前 | 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. ...

2ヶ月 前 | 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...

2ヶ月 前 | 0

| 採用済み

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

2ヶ月 前 | 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...

2ヶ月 前 | 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...

2ヶ月 前 | 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...

2ヶ月 前 | 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 ...

2ヶ月 前 | 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 ...

2ヶ月 前 | 0

| 採用済み

もっと読み込む