Community Profile

photo

Fangjun Jiang


2.324 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
Model initialization from a callback in the mask of simulink Block
There are a few terms involved here. You need to try it out to see if it is possible to achieve what you desire to do. The point...

4 Tage ago | 0

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...

7 Tage 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...

17 Tage 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...

17 Tage 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...

18 Tage 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...

19 Tage 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...

19 Tage ago | 1

| accepted

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

25 Tage 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...

25 Tage ago | 1

| accepted

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

26 Tage 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"

27 Tage 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...

28 Tage 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.

etwa ein Monat 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...

etwa ein Monat 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

etwa ein Monat ago | 0

| accepted

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

etwa ein Monat 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...

etwa ein Monat 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...

etwa ein Monat 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...

etwa ein Monat ago | 0

| accepted

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

etwa ein Monat 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.

etwa ein Monat 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...

etwa 2 Monate ago | 1

| accepted

Answered
How to define a variable as an integer that's equal to or greater than zero?
rem(struct_idx,4)==1

etwa 2 Monate ago | 0

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...

etwa 2 Monate ago | 0

| accepted

Answered
How can I transfer specific values to a new variable?
z(y==1)?

etwa 2 Monate ago | 0

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 ...

etwa 2 Monate 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=[];

etwa 2 Monate 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...

etwa 2 Monate ago | 0

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

3 Monate ago | 0

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

3 Monate ago | 0

Load more