Community Profile

photo

Fangjun Jiang


2,306 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
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...

약 15시간 ago | 0

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

약 18시간 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일 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...

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

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

13일 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=[];

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

21일 ago | 0

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

약 2달 ago | 0

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

약 2달 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"...

약 2달 ago | 0

Answered
Is Walter Roberson a real person, or is he some kind of Matlab AI robot?
Ha Ha Ha, a good question! I would say a robot, but I bet Walter Roberson would say otherwise.

약 2달 ago | 1

Answered
How to set datetime for every 9.9156 days?
t2= datetime(1994,1,1,0,0,0,'TimeZone','GMT+8'); t:days(9.9156):t2

약 2달 ago | 1

| accepted

Answered
How to get used Matlab Workspace variables within Simulink model
Simulink Data Dictionary has the capability. You can migrate your workspace variables to a Simulink Data Dictionary. When you do...

약 2달 ago | 0

Answered
How to make Simulink run the entire model just once?
Each MATLAB function block will be executed once for every simulation step. Inside the MATLAB function block, there could be loo...

약 2달 ago | 0

Answered
How can I unload an automatically generated .dll file?
try "clear functions"?

약 2달 ago | 0

Answered
How to dynamically construct a matrix of functions ?
I think you can make the matrix using M1=vertcat(blkdiag(JcX1,JcX2), blkdiag(JcX3,JcX4), ...) M2=blkdiag(vertcat(JfX1,JfX2),...

약 2달 ago | 1

Answered
Get signal name at inport of subsystem
The first case truely has the signal name. You can get it like below. In second case, you need to get the name of the Constant. ...

약 2달 ago | 1

| accepted

Answered
Textscan to convert ASCII file to mat file
You need to skip two headerlines not to specify 'Delimiter' as '\t' carefully specify the format to match the file. I got...

2달 ago | 0

Answered
Keeping plot titles in desired location
title_obj.Position; title_obj.Position=[You Value Specified Here]

2달 ago | 0

| accepted

Answered
How can I logically index 3 conditions in a loop
and(or(d(:,1)==3, d(:,1)==4),d(:,2)==1)

2달 ago | 2

| accepted

Answered
HI, is there any built in function in MATLAB to check, if all the elements in cell array or double array are same or not
something like this flag=numel(unique([fck1{:}]))==1

2달 ago | 1

| accepted

Answered
How can I which value that be used to calculate a function
You need to run min() twice A=magic(5); [MinInCol,RowIndex]=min(A); [MinValue,ColIndex]=min(MinInCol); Position=[RowIndex(Co...

2달 ago | 1

| accepted

Answered
Generate time sequence with 15 minutes step time
t1:minutes(15):t2

2달 ago | 1

| accepted

Answered
How do I link extern variables and stateflow input when using custom c code?
follow this demo model Including Custom C Code Functions and Structures

2달 ago | 0

Load more