Community Profile

photo

Fangjun Jiang


2.382 total contributions since 2011

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

Contact

Fangjun Jiang's Badges

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

View details...

Contributions in
View by

Answered
Where to manually store a path.m file?
When you start MATLAB, the Command window will show you the current folder (default: \document\MATLAB). That is the startup fold...

2 dagen ago | 0

Answered
Opening a Matlab GUI as a mask of a Simulink block
Block properties, Callbacks, OpenFcn, put in the function that call your GUI. You need to pass the result back to the block usin...

2 dagen ago | 0

Answered
Simulink 'To File' Block: How to save simulation outputs as distinct vectors
Use "To Workspace" block and then save those variables to a .mat file using "save" command.

5 dagen ago | 0

| accepted

Answered
simulink undefined funciton or variables
It is a "Mux" block or a "Bus Creator" block.

5 dagen ago | 0

| accepted

Answered
How to set a system constant to be used in multiple blocks in Simulink
The general approach is to define a parameter (e.g. MyPar1) in base workspace or in a data dictionary, then you can use this par...

5 dagen ago | 0

| accepted

Answered
getting incorrect simulinkg port specifier error
I was asked to look into a simple Simulink model in R2016 that has the "incorrect Simulink port specifier" error when updating m...

6 dagen ago | 0

Answered
How to call functions of a C library by C Caller Block in Simulink
This should help. https://www.mathworks.com/help/simulink/ug/integrate-ccode-ccaller.html

6 dagen ago | 0

Answered
Scope in Simulink showing impossible waveforms
It's because the "Marker". On the Scope, click View, Style. Change the "Marker".

6 dagen ago | 0

Answered
Simulink gradually changing a value from its original to desired
Use the "Rate Limiter" block

7 dagen ago | 1

| accepted

Answered
Assign values to a string in Matlab
Y1=X-97

7 dagen ago | 0

Answered
is it possible to change color of figure ?
a=figure; a.Color='blue'; b=axes; b.Color='red';

7 dagen ago | 0

| accepted

Answered
Finding non-zero 2-D array
a=[1 3 7; 3 6 9; 0 0 0;2 3 8]; b=a(~all(a==0,2),:);

8 dagen ago | 0

| accepted

Answered
array of mean from array
a=rand(400); b=mat2cell(a,40*ones(10,1),40*ones(1,10)); c=cellfun(@mean,b,'uni',false); d=cellfun(@mean,c,'uni',false); e=ce...

12 dagen ago | 1

| accepted

Answered
Why am I getting the complex number in the for loop?
Try not to use variable name i and j. Try this clear all i j or you missed one "*" cos(pi*(2*j+1)/(2*(n+1)))

12 dagen ago | 0

| accepted

Answered
Finding TargetLink inputs and outputs
Yes. It's better to use tl_find().

13 dagen ago | 1

| accepted

Answered
How to add a custom library using add_block?
Your syntax is not correct. open_system('SourceLibFileName') add_block('SourceLibFileName/RADAR','DestModelFileName/BlockName'...

13 dagen ago | 0

Answered
set a variable equal to the count
numel()

13 dagen ago | 0

| accepted

Answered
I have signal name which is stored in one variable and I want to make that signal as simulink object, could you please help me to create the object
eval([B{1,1},'=mpt.Signal;']); or mptsignal=mpt.Signal; assignin('base',B{1,1},mptsignal)

14 dagen ago | 0

| accepted

Answered
Using two vectors to get the third one
a=[0 1 4 7] b=rand(size(a)) c=0:23 d=nan(size(c)) d(a+1)=b

16 dagen ago | 1

Answered
I can't open configuration parameter in simulink
Remove that "C:\WINDOWS\system32" from your MATLAB path. It was trying to call the built-in "ver" function but your have ver.dll...

16 dagen ago | 0

Answered
Model Compilation Through M-Script
sort_slx_files(i).name is a string, that is the cause of the error. use eval([sort_slx_files(i).name,'([],[],[],''compile'');']...

19 dagen ago | 0

| accepted

Answered
How to display Subsystem Input Port Number in Simulink
This might be close. Right click the Subsystem block, click "Signals & Ports"

21 dagen ago | 0

Answered
Simulink change detection from MATLAB
Right click this "From Workspace" block in your model, select "Properties", select the "Callbacks" panel, select the "CopyFcn" i...

21 dagen ago | 0

| accepted

Answered
How to find unused parts of a simulink model?
Simulink Coverage might be able to help.

23 dagen ago | 0

Answered
Simulink Configuration - Diagnostics - Stateflow - Unexpected Backtracking
It applies to both chart with states or chart of "ladder logic". It is looking at a junction Does not have an unconditional tr...

26 dagen ago | 0

Answered
How to save data to existing text file with old data
I guess the key point is to use fid=fopen('FileName','a+t'), open or create file for reading and writing; append data to end of ...

26 dagen ago | 1

Answered
How to validly change a value with unit C to a value with unit K in simulink 2019a?
Use the Unit Conversion Block

28 dagen ago | 0

| accepted

Answered
Adding state flow blocks in simulink models automatically
Create Charts by Using the Stateflow API

29 dagen ago | 0

Answered
how to regenerate .p code when I DO have the original .m file?
In the directory of RequestGUI.m, run pcode RequestGUI and then copy the RequestGUI.p file See "doc pcode" for more info.

ongeveer een maand ago | 0

Answered
TUV-SUD certificate
You can search and find it at TUV SUD website. https://www.tuev-sued.de/product-testing/certificates

ongeveer een maand ago | 0

| accepted

Load more