Community Profile

photo

Fangjun Jiang


Last seen: Today
2,910 2011 年以降の合計貢献数

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

連絡する

Fangjun Jiang's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
How to upgrade Matlab Online?
It seems that today is the release date for R2020b. You might have caught the interim switch of MATLAB Online. Wait a few days i...

約15時間 前 | 0

回答済み
Set of sequnce number
%% A=1:8; N=numel(A); Multiply=10.^(N-1:-1:0)'; B=A*Multiply C=dec2hex(B)

約17時間 前 | 0

回答済み
How to programmatically "click" the block mask Apply or OK button.
I don't understand the problem. If the block has a mask of a text area, when user opens the mask by double_clicking the block,...

約18時間 前 | 0

回答済み
Programmatically duplicate signal in Simulink
add_line('SubSysBlock','InportBlock/1','MuxBlock/1','autorouting','on') loop N times

約20時間 前 | 1

| 採用済み

回答済み
How to create a bus for the scenario reader?
To resolve the error, open the MATLAB Function, click "Edit Data", Select "Bus: <object name>" from the dropdown list for "typ...

約20時間 前 | 0

回答済み
Loading static library to be implemented in Simulink
Available since R2018b C Caller block

1日 前 | 0

回答済み
I need help with plotting Simulink output in Matlab
It depends on your saving format. It looks like you have "single simulation output" checked and the format is "dataset". Press C...

1日 前 | 1

回答済み
simulink/simscape final state 'cannot find a matching block state to element 135' output by the same model
This is frustrating! Try this, note the difference between 'Save complete SimState in final state' and 'Save Final States' http...

3日 前 | 0

回答済み
Programmatically Change Preferences?
to save matfiles as version 7.3, use save(FILENAME, ..., VERSION) to set MATLAB preference, https://www.mathworks.com/help/rele...

3日 前 | 0

| 採用済み

回答済み
comparing table values using isequal
try TF = isequal (M.Var2{i},'f')

3日 前 | 1

回答済み
generating/extracting a simulink restart state from system output? ?problem with 'discrete' blocks?
Just got this: https://www.mathworks.com/help/simulink/slref/saving-and-restoring-simulation-operating-point.html

3日 前 | 0

| 採用済み

回答済み
Inquiry of the error of output port data type which can't be fixed
'BusMultiObjectTracker1' is likely a Simulink.Bus object. Check it in base workspace or your Simulink Data Dictionary. The numbe...

3日 前 | 0

回答済み
How can I get the variant names inside a Simulink variant subsystem
If you run find_system(), set the 'Variants' option (use 'AllVariants'). For subsystem inside the variant subsystem, the propert...

4日 前 | 0

| 採用済み

回答済み
Use the variable of function for title of a figure
Are you sure? put inputname(1) inside the function. It should show name as "MyStruct" if you call it with fullplot(MyStruct)

4日 前 | 1

回答済み
Simulink scope not displaying values.
Most likely the settings of the Scope. Click View, Style, set the "Marker" to be none. I've answered at least twice on similar...

7日 前 | 0

回答済み
Modifying parameters for S-function in a model which is compiled / run in rapid accelerator mode
Before the configureForDeployment line, use set_param('S_Function_Block','Param_Name','Param_Value') to change the parameter for...

7日 前 | 0

回答済み
How to start a simulation in steady-state ?
In Configuration Parameters, Data Import/Export, you can check and specify "Initial State". You can also save "States" for you...

7日 前 | 0

回答済み
'keyboard' calls fail outside try..catch when try..catch contains a keyboard call
There is no problem running the code in R2020a. run "which -all keyboard" to see if there are other function called keyboard D...

8日 前 | 0

| 採用済み

回答済み
How to make recursion faster in Matlab (Matlab seems to forget steps already done)?
You might not need to use recursive function to get the solution. Instead, just calculate the result as a nxn matrix, but, it ne...

8日 前 | 0

回答済み
How to make recursion faster in Matlab (Matlab seems to forget steps already done)?
The code can be simplified first. I see the potential saving. f(a,1,20) depends on f(a,2,20) and f(a,1,19), which depends on f...

8日 前 | 0

回答済み
Simulink simulation to confirm the change of a state after n number of cycles
Use a "Detect Change" block and a "Counter" block. If no change is detected for "Nb_cycles" times, the output is ture, otherwis...

8日 前 | 0

回答済み
Problem with Controlled voltage source
In ideal circuit, connecting a capacitor in pararell with a voltage source would short-circuit the voltage source (when initiall...

9日 前 | 1

| 採用済み

回答済み
Sizeof error and Z is a scalar/Vector but needs to be matrix
sizeof() is not a function. Maybe you want to use ndims()

9日 前 | 0

回答済み
Can I access the Unit of a Simulink.Parameter in a Mask?
Yes but it is not very elegant. "INPUTPARAM" is the name of your mask variable. You have to follow that to get the name of the...

9日 前 | 0

| 採用済み

回答済み
Error using cos.Not enough input arguments.
try this line by line y=pi (cos(y))^2 cos^2*y

14日 前 | 0

| 採用済み

回答済み
Inline to Anonymous Function
x =@(t) 5*sin(2*pi*1*t).*exp(-.4*t)'

15日 前 | 0

回答済み
How i convert a phrase like;(_x_1, or %diff) into a valid matlab variable? That i need to create a function?
If just want to create a valid MATLAB variable name, genvarname('_x_1') genvarname('%diff') matlab.lang.makeValidName('%diff'...

15日 前 | 0

| 採用済み

回答済み
Trying to plot a step response of a given transfer function.
You probably meant tf1=p21. p2 itself is improper. I assume you know what it means in control theory.

16日 前 | 1

| 採用済み

回答済み
using fprint with prompt
fprintf('The volumn of the cubic is: %d',v)

16日 前 | 1

回答済み
How to add ground and terminator in protected model
That is why it is called "proteted mode", right? There are different level of protection. You may be able to read-only the model...

16日 前 | 0

Load more