Community Profile

photo

Fangjun Jiang


Last seen: Today
2,766 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

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
Updating simulink block parameter as the simulation runs.
setting array value as [time1 value1;time2 value2; time3 value3....] works for signal, not for parameters. Use this approach ins...

1일 전 | 0

| 수락됨

답변 있음
Unexpected error when plotting a bar chart
because your data is 4x2, h is an 1x2 array so you can't use h.YLabel. Check the value of h You have to use h(1).YLabel but the...

2일 전 | 0

| 수락됨

답변 있음
Insert a function in Simulink
The Clock block gives you time t for simulation. The rest is to use multiplication, sum and Devide.

2일 전 | 0

| 수락됨

답변 있음
One variable, two 'To Workspace' blocks simulink
"Res" is the variable created in the based workspace after simulation is done to log your simulation data You can't have two "T...

6일 전 | 0

답변 있음
Matlab to excel and back! Q about using ActiveX
See if you have this file in your MATLAB release edit ChangeRowHeightInRangeOfSpreadsheetCellsExample.m

6일 전 | 0

답변 있음
Is there a function that will test if the input is char OR string OR cellstr?
You've made that function. If you look at the "See also" section of "help iscellstr", you don't see any other related functions....

6일 전 | 0

답변 있음
obtain answer in brackets
mat2str(magic(3))

6일 전 | 1

| 수락됨

답변 있음
check referenced models do exist
You can do this. MdlRef=find_system(Model,'BlockType','ModelReference'); for k=1:length(MdlRef) SubModel=get_param(MdlRef{k},...

6일 전 | 0

| 수락됨

답변 있음
Accessing Simulink Model using M script
Something like this: Model='MyModel'; open_system(Model); Sys=find_system(Model,'BlockType','SubSystem'); for k=1:length(Sys...

6일 전 | 0

답변 있음
how to add singal and its attributes( data type, min, max values to data dictionary programatically?
What you can do is to create the Simulink.Parameter as a temparary object and assign all its properties and then addEntry(). A ...

7일 전 | 0

| 수락됨

답변 있음
all test harness signals are initialized to the wrong values (ZEROS)
Find the source of the signal in the model (the output of a Gain block or could be a root level Inport block, where the signal i...

7일 전 | 0

답변 있음
Change Simulink.Parameter ExportedGlobal from inside Simulink model
The reason that the external code can modify that parameter is because You made it ExportedGlobal It is C code The C code bas...

7일 전 | 0

| 수락됨

답변 있음
Simulink: minimum values in vector segments
Use a MATLAB Function block and code similar like this: y=min(reshape(1:20,4,5)) work out the warnings and errors regarding var...

8일 전 | 1

답변 있음
Observe the output in Matlab workspace
Assume "y" is "the output". Let's do it properly. In your Simulink model, double click the signal line out of the dy/dt Integrat...

8일 전 | 0

답변 있음
Optimize Rapid Accelerator and avoid rebuilding
Avoid Scope block. Try Simulink Data Inspector web(fullfile(docroot, 'simulink/slref/simulationdatainspector.html'))

9일 전 | 0

답변 있음
Error: Unable to resolve the name workbooks.Open.
After excel = actxserver(), you have not defined "workbooks". Need this? workbooks= excel.Workbooks;

9일 전 | 0

| 수락됨

답변 있음
Changing image in an algebraic loop
A better way in this case is to use persistent variable. doc persistent But a loop with memory or delay block should also work....

9일 전 | 0

답변 있음
Remove default block names from auto generated Code using embedded coder
If you want a particular variable name for a signal line in the model, double click the signal line, give it a name "MySignal", ...

11일 전 | 0

| 수락됨

답변 있음
couldnt able to use switch statement with string
material=lower(material); without the single quote.

12일 전 | 0

| 수락됨

답변 있음
Issue with Lookup Table Code Generation?
Column-Major Layout to Row-Major Layout Conversion of Models with Lookup Table Blocks web(fullfile(docroot, 'ecoder/ug/column-m...

12일 전 | 0

| 수락됨

답변 있음
Delete files inside subfolder
use dir('**/*.mat') to find files in subfolders in one shot and then use a for-loop to delete the files.

12일 전 | 0

| 수락됨

답변 있음
Fastest way to replace NaNs by empty cells in a table
M=10;N=5; a = rand(1, M)'; a(1:N) = NaN; b = rand(1, M)'; b(1:N) = NaN; c = repelem({'A101'}, M)'; t = table(a, b, c); t....

13일 전 | 0

| 수락됨

답변 있음
Why I the data processed by the matlab is wrong, it reports three wrong results,what is the reason?All the data and .m files are included ,who can help me?
This is probably the limitation of the smartness of the importdata() function. If you look at filec.textdata, you will get a cl...

13일 전 | 0

답변 있음
How to generate non-repeatable random number in simulink in same session
The MATLAB Function block is executed at every simulation step. For this case, I would suggest using rng() and poissrnd(0.52,N,1...

14일 전 | 1

| 수락됨

답변 있음
How can I output singular element of an array from workspace to simulink per second simulation time?
Assume your data is data=(1:96).'/100 Create a time vector time=(0:95).' Use a "From Workspace" block, specify the data as [ti...

14일 전 | 0

답변 있음
Unable to update data tip using custom update function
It must be related to where the custom update function comes from when the figure is saved. I created and saved the figure fir...

14일 전 | 0

| 수락됨

답변 있음
How to extract a value from a Row or Column vector?
Is this what you are looking for ? MyVector=rand(100,1); MyData=MyVector(5);

15일 전 | 0

| 수락됨

답변 있음
How to copy the content of a model to another model without closing the current model
save_system() and then copyfile() Simulink autosave preference Simulink.BlockDiagram.copyContentsToSubsystem(), Simulink.SubSy...

15일 전 | 0

| 수락됨

답변 있음
How can I write a Mask parameter to the workspace in Simulink?
The masked parameters seem to mismatch internal variables. The easiest way is to change the #1 and #2 parameter name in the mask...

16일 전 | 0

| 수락됨

답변 있음
strcmp: compare a string with a set of strings
IsSpring=ismember('January',{'January','Feburary','March'})

19일 전 | 0

| 수락됨

Load more