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 3
  • Knowledgeable Level 5
  • First Answer
  • Solver

배지 보기

Content Feed

보기 기준

답변 있음
Array operations on simulink math function for maximum efficiency
Instead of using "For Iterator Subsystem" block and "Math Function" block, I would suggest using the "MATLAB Function" block. ...

2일 전 | 0

| 수락됨

답변 있음
Is there any method to import the ecg samples(.mat file) in simulink and display the signal into the scope
From File block See example model in the doc

2일 전 | 0

답변 있음
compare 2 consequtive columns ?
data=[3 3 4 4 5 5 6 6 5 5 8 8 9 9 7 7 2 2]; index=diff(data,1,2) index2=any(index) output=sum(index2) OutData=data...

3일 전 | 0

| 수락됨

답변 있음
Get signal lines in a linked library in Simulink
Not sure if "link1.slx" is a model/subsystem or a library, which results in a subsystem reference or a library link. In any cas...

3일 전 | 1

답변 있음
identifying entry elements in rows of logical matrix
in = [1 1 1; 0 1 1; 0 0 0; 0 1 0]; M=size(in,1); temp=[zeros(M,1), in]; d=diff(temp,1,2); out=(d==1)

4일 전 | 0

답변 있음
How can we resolve the error caused by - Dictionary entry value class 'DATA.Signal' is undefined ?
It seems like DATA.Signal is a customized class, for example, built on top of the Simulink.Signal class. Or, it could be a class...

4일 전 | 0

답변 있음
Simulink - 'MaskPortRotation' is read-only?
If it is read-only, then leave it alone. Don't try to set it. Port Location After Rotating or Flipping Mask Parameters

5일 전 | 0

답변 있음
Can the descriptions of all Model Advisor checks for R2021a be exported to Matlab workspace?
something like this: Model='f14'; open(Model); ma = Simulink.ModelAdvisor.getModelAdvisor(Model); Checks=ma.CheckCellArray; ...

5일 전 | 0

| 수락됨

답변 있음
How to edit .fig (already saved image) in MATLAB?
run "findobj(figld)" and you will see a list of objects. The general idea is to use findobj() to find the handles of the needed...

6일 전 | 0

답변 있음
Sending episode number to simulink during training
Try the Constant block and specify the value as trainingStats.EpisodeIndex(1). Read the document of the "From Workspace" block t...

6일 전 | 0

답변 있음
CAN UnPack block not giving signals names specified by the dbc file
Those signal lines need to be labelled (having a name) so then the names can appear in the BusSelector block. I think the "Unpac...

6일 전 | 0

답변 있음
Need help on fixing Stateflow model.
First, "d" is not a parameter. You need to change it to be a "local data" and give an initial value, e.g. 0. The error message ...

10일 전 | 0

답변 있음
Detect if user has a valid MatLab license
There are so many ways to specify the license file, I think you need to follow this order specified in "MATLAB License Search Pa...

10일 전 | 1

답변 있음
creating matrix using output elements
B=[1:1:576]'; mean(reshape(B,24,[]))

10일 전 | 0

| 수락됨

답변 있음
Is it possible to access/use sldd data within a stateflow without using a mask?
Once the SLDD is specified for the model, its data can be used by the whole model. What is the issue? In Stateflow, add a param...

11일 전 | 0

| 수락됨

답변 있음
Disable some or all the optimization for simulink simulation
I would suggest using blocks from Simulink Dashboard, e.g. Slider

11일 전 | 0

답변 있음
How do I print a legend using a character array and integer array?
a="current"; b={'archive'}; c='current'; sprintf('%s',a) sprintf('%s',b{1}) sprintf('%s',c)

11일 전 | 0

답변 있음
How to interact with model configuration parameters using script
vdp; get_param('vdp','ParameterOverflowMsg'); set_param('vdp','ParameterOverflowMsg','warning') web(fullfile(docroot, 'simu...

12일 전 | 0

| 수락됨

답변 있음
Not a 'Simulink.Signal' object
Select a signal line in your model, right click, select Properties, type in a name "SignalA", and check the check-box "Signal na...

12일 전 | 0

답변 있음
Getting error on opening Signal Builder block
Might be due to a corruptted file. If it is not critical to lose this particular block, then drag a new SignalBuilder block to a...

12일 전 | 0

답변 있음
How to assign initial values to closed loops in simulink
There are many blocks inside model A, B and C. Some of the blocks (e.g. an Integrator) have dialog parameter for initial value. ...

12일 전 | 0

| 수락됨

답변 있음
a serialized simulation in Simulink
This should be a relatively easy task. I think the best way is to implement it in the "StopFcn" callback of the model. Open th...

14일 전 | 0

답변 있음
Why can this expression be logically evaluated but not used in an if-statements?
"somehow it didn't throw an error in any of the cases (1, any number or no number)." The coding problem still exists. The err...

16일 전 | 0

답변 있음
Variation between data during simulation and that stored for use in second simulation
@Paul, I am determined to persuade you on this. Luckily, I was able to make an example quickly. See attached model in R2022b. ...

17일 전 | 0

답변 있음
Failed to evaluate mask initialization commands.
This is the first three lines of code in the initialization function of that "Image from File" block. The variable "ImageValue...

17일 전 | 0

답변 있음
How to set the 'Model name' in Model Reference via MATLAB command?
get_param(Block,'ModelName') get_param(Block,'ModelFile')

17일 전 | 0

| 수락됨

답변 있음
How to implement a look up table in simulink which can accept variable SIZE data as inputs
You must be using the "Lookup Table Dynanic" block for this. Accordig to its doc, it does not support 'variable-size signals". S...

17일 전 | 1

답변 있음
Custom Library Blocks get reset to default value every time the model is closed.
This is caused by improper mask or improper usage of a custom library block. The proper way is to specify the Constant block va...

18일 전 | 0

답변 있음
Variation between data during simulation and that stored for use in second simulation
I think I understand your question. I will use this diagram from https://en.wikipedia.org/wiki/Control_theory to explain. You...

18일 전 | 0

답변 있음
How to simulate a Simulink model through a .m file, that is executed by a GUI
It is a source workspace issue. Based on your code, Kennfeldabhaengigkeit.m is a script. "When I execute the m.file by itself"...

19일 전 | 0

더 보기