Community Profile

photo

Fangjun Jiang


2,323 total contributions since 2011

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

Contact

Fangjun Jiang's Badges

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

View details...

Contributions in
View by

Answered
How to find signals, which are defined in matlab-workspace, but not used in the SimulinkModel?
Right click on your model, select "Find Reference Variables". Highlight all referenced variables, right click, select "Export Se...

1 day ago | 0

| accepted

Answered
Is there a way to suppress Simulink from being brought to front of screen?
If you used laod_system(), then the Simulink model is not supposed to be visible. open_system() will load it and make it visible...

12 days ago | 1

| accepted

Answered
How to use the simulation time in MATLAB
Create a 1Hz trigger (e.g. Pulse Generator with amplitude of 1 and period of 1), feed it to a "Not" block and then an "Assertion...

12 days ago | 0

Answered
Simulink: Matlab function block for Charge controller of a solar home system.
Keep in mind that the MATLAB Function block executes once at every simulation step. So I don't think you should use the while-lo...

13 days ago | 1

| accepted

Answered
simulink real time task excution time
In your task, you might have some conditional statements. If the condition is met, certain codes or blocks are executed thus tak...

13 days ago | 0

Answered
System Design Description Report in 2018b
File > Reports > System Design Description is right at the menu of a Simulink model in MATLAB R2018b. Make sure you have the Sim...

14 days ago | 1

| accepted

Answered
Convert single string with many numbers to vector
a=str2num(hue);

20 days ago | 1

Answered
Save an output each simulation
In your model, you have a "To Workspace" block logging four signals and writing to a workspace variable "simout". Of course, the...

20 days ago | 1

| accepted

Answered
Using a bus-signal as an Input into a 'Model'-Block in Simulink
see the demo model: sldemo_mdlref_conversion

21 days ago | 0

Answered
Remove parameters defined in Data Dictionary which are not used reference model
At the root level of your model, right click on the canvas, select "Find Referenced Variables"

21 days ago | 2

| accepted

Answered
Signal sine wave ??
If there is no constrain, you could multiple the Clock with 2*pi*f, where f is your frequency and then feed it to an "Interprete...

22 days ago | 1

Answered
lookup tables having issue about the monotonically increasing data.
For lookup tabel data, you need to make sure the value of the breakpoint data is strictly increasing.

27 days ago | 0

Answered
How can I programmatically delete a group (test case) from a signalbuilder?
doc signalbuilder Create Signal Builder Block and Delete Group Create a Signal Builder block with two signal groups and dele...

28 days ago | 0

| accepted

Answered
Need to run sl_refresh_customizations each time I open my Simulink project
See Customize Build Process with sl_customization.m

28 days ago | 0

| accepted

Answered
Every combination of elements
nchoosek(1:4,2)

29 days ago | 0

| accepted

Answered
How do I get multiple images in Simulink mask editor (Icon Drawing Commands)
You are on the righ track to what you want to achieve. The error is related to something else. For example, 'abc'=='abc ' wou...

1 month ago | 0

Answered
Problem when two Simulink models are combined.
In the two separate models, can you run simulation and log the time? Take a look at the resulting fixed-step size. Do the same f...

1 month ago | 0

Answered
Simulink variable number of input to a block
It could be done. First, understand this Parameterized Links and Self-Modifiable Linked Subsystems Second, construct your mo...

1 month ago | 0

| accepted

Answered
Save Excel cell range as image with activeX
Range.CopyPicture method (Excel)

1 month ago | 0

Answered
Getting out of while loop when user says end
Use isequal(answer,'Yes') or strcmp(answer,'Yes') 'Yes'=='No' will cause the problem.

1 month ago | 0

| accepted

Answered
Defining Matlab function datatype input in Simulink
In the MATLAB Funciton editor, click icon "Edit Data". Or in Simulink, Ctrl+H to open Model Explorer, on the left column, navig...

1 month ago | 1

| accepted

Answered
How to programmatically name blocks when creating a model
handle=add_block(...); set(handle, 'Name','YourBlockName'); Make sure the name is unique though. If not, find a way to make it...

1 month ago | 0

| accepted

Answered
Error in port widths or dimensions.
The Outport block "Out1" in "PI Controller" is connected to a BusCreator (or Mux) block. It contains two signals. That might be ...

2 months ago | 0

Answered
cant find the mistake here
The mistake is that you need to insert this line as the first line inside your function. v=[];

2 months ago | 0

Answered
why does appear this error: "Unable to open file 'C:\Users\jonat\Desktop\Clean\~$2019-04-26 Clean.xlsx'?
The name "~$2019-04-26 Clean.xlsx" indicates it is a temporary file. Is the file opened or edited by another program or by the c...

2 months ago | 0

Answered
Finding approximate y values for corresponding x values in matlab
interp1(x,y,3.1,'nearest')

3 months ago | 0

Answered
How to access used variables in a specific state in stateflow
Create and Access Charts Using the Stateflow API

3 months ago | 0

Answered
sldiagnostics counts subsystems which are not visible
When Simulink compiles or updates the model, it went through many steps. I have a guess on what "Pre-compile post-eval notifies"...

3 months ago | 0

Load more