Community Profile

photo

Fangjun Jiang


Last seen: Today
3,063 total contributions since 2011

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

Contact

Fangjun Jiang's Badges

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

View details...

Contributions in
View by

Answered
Is it possible to converte ideal angular velocity source signal rad/s to rpm ?
Do the conversion using a Gain block or use this block https://www.mathworks.com/help/releases/R2019b/simulink/slref/unitconver...

6 hours ago | 0

Answered
MATLAB Simulink 2007b Programmatic specification of Simulation Targets
Don't have R2007b no more. Tried this in R2011b. It seems to work. get_param(bdroot,'SimUserSources') get_param(bdroot,'SimCus...

1 day ago | 0

Answered
How can I merge 6 same-size vectors in simulink to obtain only one output?
The "Sum" block is all you need.

1 day ago | 0

| accepted

Answered
how do i determine toolbox dependency when i try to uninstall toolbox ?
The best way is to go to Mathwork website, products, find the toolbox, scorll to the bottom, "view pricing and licensing", then ...

1 day ago | 0

Answered
How to use variables from Workspace in Simulink Function block ?
The "Simulink Function Block" defines a "function" that could be scoped and called multiple instances, so I think you have to us...

1 day ago | 0

Answered
Get block outport value
select that output signal line, right click, select "properties" See this: https://www.mathworks.com/help/simulink/gui/logging-...

1 day ago | 0

Answered
Absence of PV array in Simulink (Matlab2020a)
This is the link for R2020a. Do you have the toolbox installed and license" https://www.mathworks.com/help/releases/R2020a/phys...

2 days ago | 0

Answered
Double to Logical convertion in Simulink
Change the settings of the "From File" block. Do not do interpolation or extrapolation. The boolean data type could be saved wi...

2 days ago | 0

| accepted

Answered
Problem with Simscape variable visibility
If I remember it correctly, all you need to do is to give sim() a return variable. Just try it result=sim('threePhaseDiodeRecti...

7 days ago | 0

Answered
Is it possible to "turn off" parts of a model?
Try to utilize the "Initialize Function" block from Simulink/User-defined functions library

7 days ago | 0

| accepted

Answered
How to change Simulink Block properties from Command Window
set_param('YourBlockPath','TorqueActuationMode','ComputedTorque')

7 days ago | 0

| accepted

Answered
save to. mat after reshape to [50 x1x12]
save('FileName','Varname')

8 days ago | 0

| accepted

Answered
Cell array row deletion
c={'a',1,2;'b',3,4} index=strcmp(c(:,1),'a') c(index,:)=[]

8 days ago | 1

Answered
Removing jumps from data when plotting a graph
In your case, since you have enough data, I think you can use symbol in plot() to remove the "jump". If your old way is plot(x,...

8 days ago | 0

Answered
How to iterate through the alphabet like Excel does
In old versions of MATLAB, you can find that function inside xlswrite.m. I used to copy that for my own use. In R2019b, it seem...

8 days ago | 0

Answered
Changing frequency of input data
resample() timeseries object also has resample() method. see web(fullfile(docroot, 'matlab/ref/timeseries.resample.html')) t...

8 days ago | 1

| accepted

Answered
How can i add linear second-order transfer function to the simulink system?
drag and drop this block from library https://www.mathworks.com/help/simulink/slref/transferfcn.html

11 days ago | 0

Answered
Where is help relop?
It is true. The explanation: \Program Files\MATLAB\R2019b\toolbox\matlab\ops\relop.m is gone in R2020a, that is why "help relo...

12 days ago | 1

| accepted

Answered
How to discover all submodels within a simulink model programmatically ?
Using the example model 'f14'. Play with some other options of find_system() f14; SubSysBlocks=find_system('f14','BlockType','...

13 days ago | 0

| accepted

Answered
How can I get archived documentation for a R2012b release?
These are the archived document. R2012b is not there. Follow link to contact support to see you can get it. https://www.mathwor...

13 days ago | 0

Answered
Unable to remove elements from array and I don't know why
Do the loop backward should resolve the problem. I hope you would understand the reason. for i=length(x):-1:1 Also, better to ...

15 days ago | 1

Answered
select values from matrix
loc=sub2ind(size(A),idx,1:size(A,2)); >> out=A(loc) out = 1 7 3 9 5

15 days ago | 1

| accepted

Answered
Variable sample time with different time values
This seemingly simple question is actually quite complex. The input data is non-periodic. To hit every value-changing data poi...

15 days ago | 0

| accepted

Answered
command window change colors
Click "Preferences", then "Colors"

15 days ago | 1

| accepted

Answered
How do I keep unused root-Level Inports in the generated code
In your model configuration, search for "block reduction", un-check it. I assume you must have the root-level Inport blocks ter...

20 days ago | 0

Answered
Can I simulate a transfer function in simulink in real time and interact with the model using the GUI?
Yes, thought it requires this toolbox: Simulink Desktop Real-Time

20 days ago | 0

Answered
Error Unable to delete elements from this array because dimension 1 has fixed size 1000
You kept asking similar questions on this topic. You need to ask your question precisely and accurately. The key point for this ...

22 days ago | 0

Answered
Displaying images by using a variable
It can be done but less ideal. a=input('enter the number','s'); file=[a,'.jpg']; imshow(file); Better file=uigetfile('se...

23 days ago | 0

| accepted

Answered
Incorrect use of '=' operator
Both codes run properly if run alone. You can "clear all" and then try it. A potential problem is with inputdlg(). "agea" is a ...

23 days ago | 0

Load more