Community Profile

photo

Fangjun Jiang


2,290 2011 年以降の合計貢献数

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

連絡する

Fangjun Jiang's バッジ

  • 24 Month Streak
  • Revival Level 2
  • Ace
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
How to make Simulink run the entire model just once?
Each MATLAB function block will be executed once for every simulation step. Inside the MATLAB function block, there could be loo...

約5時間 前 | 0

回答済み
How can I unload an automatically generated .dll file?
try "clear functions"?

約5時間 前 | 0

回答済み
How to dynamically construct a matrix of functions ?
I think you can make the matrix using M1=vertcat(blkdiag(JcX1,JcX2), blkdiag(JcX3,JcX4), ...) M2=blkdiag(vertcat(JfX1,JfX2),...

3日 前 | 0

回答済み
Get signal name at inport of subsystem
The first case truely has the signal name. You can get it like below. In second case, you need to get the name of the Constant. ...

3日 前 | 1

| 採用済み

回答済み
Textscan to convert ASCII file to mat file
You need to skip two headerlines not to specify 'Delimiter' as '\t' carefully specify the format to match the file. I got...

6日 前 | 0

回答済み
Keeping plot titles in desired location
title_obj.Position; title_obj.Position=[You Value Specified Here]

8日 前 | 0

| 採用済み

回答済み
How can I logically index 3 conditions in a loop
and(or(d(:,1)==3, d(:,1)==4),d(:,2)==1)

8日 前 | 2

| 採用済み

回答済み
Remove rows from a matrix by considering repeated elements of the first column.
unique(A,'rows')

9日 前 | 0

| 採用済み

回答済み
HI, is there any built in function in MATLAB to check, if all the elements in cell array or double array are same or not
something like this flag=numel(unique([fck1{:}]))==1

9日 前 | 1

| 採用済み

回答済み
How can I which value that be used to calculate a function
You need to run min() twice A=magic(5); [MinInCol,RowIndex]=min(A); [MinValue,ColIndex]=min(MinInCol); Position=[RowIndex(Co...

9日 前 | 1

| 採用済み

回答済み
Generate time sequence with 15 minutes step time
t1:minutes(15):t2

9日 前 | 1

| 採用済み

回答済み
How do I link extern variables and stateflow input when using custom c code?
follow this demo model Including Custom C Code Functions and Structures

10日 前 | 0

回答済み
How to bound discrete integrator outputs
When the saturation happends, it should not reset to zero. It should reset to "Value-2*pi". Don't enable "Limit output" at thi...

13日 前 | 1

| 採用済み

回答済み
Feedback from Command/DOS window
I don't know if this old trick could work. Try system('mycommand.exe & >output.txt'). Hope all the output would be re-directed t...

14日 前 | 0

回答済み
simulink model property callback
All the texts specified there are treated as code. So you could specify one line of code, or multiple lines with multiple functi...

14日 前 | 0

回答済み
persistent variable simulink codegen stateflow error: "IR Construction failed"
I think IR means "Internal Representation". It might be a bug. Make a simple example and submit a service request to the Mathwor...

15日 前 | 0

回答済み
Error when defining variable with if statement and add to table
the size of a, b and l is 30x1 but the size of m is 1x1

15日 前 | 0

回答済み
Divide a specific element in a matrix
A.*(2*eye(3)-1)

15日 前 | 0

| 採用済み

回答済み
Access Lookup Table Data from MATLAB command line
For example, set_param(FullBlockPath, 'Table','rand(5,5)'); web(fullfile(docroot, 'simulink/slref/block-specific-parameters.htm...

16日 前 | 1

回答済み
Is there a block property that makes a Simulink block non resizable?
I wouldn't think so. The size of the block is controlled by the parameter "Position". It is [Left, Top, Right, Bottom]. If you m...

16日 前 | 0

回答済み
Simulink shows NO warning when goto and from are missinig/not connected.
configuration parameters -> Diagnostics -> Connectivity -> Unconnected line

16日 前 | 1

回答済み
'Layer 1' is not a valid model name because it is not a valid MATLAB function name
remove the white space. call it "Layer1" or "Layer_1"

24日 前 | 0

| 採用済み

回答済み
How can I remove 'hide automatic names' feature permanently in simulink ?
It is just those that the default settings are not what you want. You can create your own model template. Create a Template fro...

29日 前 | 0

回答済み
How to use the exist feature with an if statement?
if exist('VarName','var')

29日 前 | 0

| 採用済み

回答済み
How to get the name of Active State in Stateflow
A typical way is to add an output to the chart. In each state, add a during action that assign this output with the value of the...

29日 前 | 0

回答済み
How to duplicate the model workspace for another simulink project?
Model workspace is saved with the model. You can import and export though. In Model Explorer, select "Model Workspace", right cl...

29日 前 | 0

| 採用済み

回答済み
concatenating even and odd rows
A=rand(10,16); B=[A(1:2:end,:),A(2:2:end,:)]

約1ヶ月 前 | 0

| 採用済み

回答済み
Does Simulink blocks data type affect simulation time?
Probably no effect. And probably causes more time since you need to resolve data type conflicts and add data type conversion. I...

約1ヶ月 前 | 0

Load more