Community Profile

photo

Fangjun Jiang


Last seen: Today
3,011 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

詳細を表示...

貢献した分野
表示方法

回答済み
Trying to use different signals at different times
All you need is to set the initial value of the "Unit Delay" block as "Temp FL Initial"

約9時間 前 | 0

回答済み
Is it possible to have a column data with some numerical values and some strings?
Where does A come from? In MATLAB, A can not be stored as A = [53; 26b] or A={53; 26b}. If the source data comes from Excel fil...

1日 前 | 0

| 採用済み

回答済み
writematrix resizing column widths
Look for the 'PreserveFormat' and the 'UseExcel' properties. Also, look for the writecell() function.

2日 前 | 0

回答済み
Converting cell array to matrix
>> a={[1 2],[3 4]} a = 1×2 cell array {1×2 double} {1×2 double} >> cell2mat(a) ans = 1 2 3 4 >>...

2日 前 | 0

回答済み
Change output resolution by export_fig
export_fig() must be a customized function. You have to look at its syntax to learn how to specify resolution. You could use th...

3日 前 | 0

回答済み
How can I get a string with a line break to be centered in a uicontrol?
I don't know why, but try and error and then got lucky. %% f = figure('Position',[300,300,600,600]); uicontrol('Parent',f,......

3日 前 | 0

回答済み
Is it possible to call a callback from one GUI to another separate GUI?
To call a callback is to call a function. So if you save that function in a separate file and package it with GUI1 and GUI2, the...

3日 前 | 0

| 採用済み

回答済み
Error using sub2ind (line 43) Out of range subscript. How to solve this?
[row1,col1] is the index for mat_zer in sub2ind(), it is using size(mat_zer_pm) Do mat_zer_pm and mat_zer have the same size a...

3日 前 | 0

| 採用済み

回答済み
Make all values of array Nan except for specified locations
%% a=magic(5); RowPos=[1,3,5]; ColPos=[2,4,5]; ind=sub2ind(size(a),RowPos,ColPos); b=nan(size(a)); b(ind)=a(ind);

3日 前 | 1

| 採用済み

回答済み
Using dynamic workspace arrays as Matlab function input/output
Use vector signal between part 1 and part 2. No need to use memory block. Use Unit delay to resolve algebric loop if needed. Us...

4日 前 | 0

| 採用済み

回答済み
Getting output data from Simulink
The different size of the logged data is caused by the variable-step solver. To get a consistent and fixed size log data, use a ...

4日 前 | 1

回答済み
Create a block table using script
This inner loop does not make sense. for i = getBlock(n, 1) tableStruct = struct(get(i), 'Name'); end...

5日 前 | 0

回答済み
Sine Wave not recognize with find_system
The 'BlockType' for the "Sine Wave" is 'Sin'.

5日 前 | 0

| 採用済み

回答済み
Force Simulink Coder to regenerate code and rebuild a model
rtwbuild('rtwdemo_mdlreftop','ForceTopModelBuild',true)

5日 前 | 1

回答済み
How can I open the Code-Generation Report of the hdlcoder
See this Q&A. https://www.mathworks.com/matlabcentral/answers/278856-how-do-i-open-the-code-generation-report-after-it-s-been-c...

8日 前 | 0

| 採用済み

回答済み
sim('') command with supressed ";" still displays a variable on command window (it's spamming it)
You need to go to your Simulink model to find the source of the assignment line "y=something" where ";" is not present. It could...

8日 前 | 0

| 採用済み

回答済み
Can one define a "directory" as a "variable"?
directory='c:\myfolder'; filename='myfile.xlsx'; readtable(fullfile(directory,filename));

12日 前 | 0

| 採用済み

回答済み
What is the ID of styecheck jc_0803 ??
MA check for jc_0803 in introduced in R2020a. See at the bottom of the link. https://www.mathworks.com/help/releases/R2020a/sim...

12日 前 | 0

| 採用済み

回答済み
How can find all stateflow objects which used function?
If you use "MATLAB action language" in your chart, then the floor() function is the same as the floor() function provided by MAT...

12日 前 | 0

回答済み
Check that point doesnt lay on line in Simulink block diagram
Checking whether a point lays on any existing line will be very difficult. The answer to the OP's question seems to be utilizing...

12日 前 | 1

| 採用済み

回答済み
How to count the amount of times a specific number appears on an output wave?
Compare your signal with the value of 2, if greater than 2, output true, otherwise false. The output is a square wave. Use this ...

13日 前 | 0

回答済み
Syntax error in Simulink
Define a set of example value for u(1) to u(7) in MATLAB, copy and past your expression picece by piece in small parts and execu...

14日 前 | 0

回答済み
Format output with constant display values
%% X2=5.6; period=60; fprintf('2*pi*%g/%g\n',X2,period);

16日 前 | 0

回答済み
Tic, Toc Behavior
for the sake of fair comparison, the code below should give you reasonable results %% TicTocLoop=0; TicTocValue=0; for i =...

16日 前 | 0

| 採用済み

回答済み
How to load a cell array into a Simulink model?
According to this: Data Types Supported by Simulink, neither "cell array" nor "function handle" is mentioned. I don't know how y...

18日 前 | 0

回答済み
My simulink model seems to not receiving proper variables from workspace or not returning proper value to workspace.
I am trying to find the document link but could't. I thought it was in "doc sim". The problem could be explained by the way sim...

22日 前 | 0

| 採用済み

回答済み
Simulink library missing from browser
Run these two lines in Command Window. What did you get? ver simulink open simulink.slx

23日 前 | 1

| 採用済み

回答済み
How to create/access and update global variables in Simulink using Data Store Memory block
Follow the example here. https://www.mathworks.com/help/releases/R2020b/simulink/ug/using-global-data-with-the-matlab-function-...

23日 前 | 0

| 採用済み

回答済み
Programmatically make library targetlink compliant
I used to have it. I believe the command is tl_prepare_system(). See the document in your TargetLink installation.

23日 前 | 0

回答済み
Access Simulation Time in Simulink Model
The Clock block provides the time.

24日 前 | 1

| 採用済み

Load more