photo

Jianfei


Last seen: Today Active since 2020

Followers: 0   Following: 0

Message

Programming Languages:
Python, Java, MATLAB
Spoken Languages:
English, Chinese
Professional Interests:
Java with MATLAB, Simulink, MATLAB Test

Statistics

  • Thankful Level 1
  • First Answer

View badges

Feeds

View by

Question


Why MATLAB creates garbage files in current folder after running MATLAB Test
And there's a folder named "dig" I'm not sure which version of MATLAB created those files because I run MATLAB Tests by mor...

22 hours ago | 0 answers | 0

0

answers

Answered
fail to delete files using the delete command in R2018a
Deleting a file may fail even if that file has not being used. I tried to use Java io functions to delete files, but it still ca...

5 days ago | 0

Question


How can I exit Simuink completely?
I have a function containing isSimulinkStarted. I want my testcase to test both conditions, but once Simulink has started, it wi...

19 days ago | 1 answer | 1

1

answer

Question


How to get consistant results when testing code performance
I have functions to make searches in Simulink models. I want to test which algorithm has better performance. I use the "Run and ...

22 days ago | 2 answers | 0

2

answers

Answered
Running/testing scripts on multiple Matlab/Simulink versions?
I searched for this question years ago, and recently, I found my own solution, which I’m quite satisfied with. Here’s what I did...

1 month ago | 0

Answered
Insert a link to subsytem block in annotation
You can simply use an empty subsystem and create a mask to display your annotations. Then, set up an OpenFcn callback. Using hil...

2 months ago | 0

Answered
How can I test a function that contains a "waitFor" function or popup dialogs without requiring external user input?
I found a perfect solution to this issue. I've made this answer the accepted one as it can be implemented across all MATLAB vers...

2 months ago | 0

| accepted

Question


How can I test a function that contains a "waitFor" function or popup dialogs without requiring external user input?
I am testing a GUI function in my code. Within my test class, I use Java functions to simulate mouse clicks, which trigger a pop...

4 months ago | 3 answers | 0

3

answers

Question


Is it possible to ignore certain lines in MATLAB coverage test?
If matlab version > a version do something else do something else end I hope certain lines can be ignored based o...

12 months ago | 1 answer | 0

1

answer

Question


How can I combine binary data in memory, and use fwrite for only one time to write all the data?
I need to write some large data in multiple loops. Each time, the data being written by fwrite is very small, and the frequent u...

3 years ago | 1 answer | 0

1

answer

Question


What is "Input" in "model" command?
In the model command, in you want to get the output of a model, the code is: outputs = model(t,x,u,'outputs'); In which "u" me...

4 years ago | 1 answer | 0

1

answer