Community Profile

photo

Fangjun Jiang


Last seen: Today
2,589 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

詳細を表示...

貢献した分野
表示方法

回答済み
Produce equality matrix based on elements in vector.
Like this? A=randi(10,5,1); B=randi(10,5,1); k=3; C=(B==A(k))

2日 前 | 0

回答済み
How can I insert a code that is in the MATLAB function block of my model in a report?
myMFBConfigobj = get_param(gcb, 'MATLABFunctionConfiguration') The source code is in .FunctionScript web(fullfile(docroot, 'si...

2日 前 | 0

回答済み
Plot(x,y2) with if condition y1(x)
You can check the output of y1>0. It's a vector so shouldn't be used in if statement. what you need for y2 is index=y1>0 plot...

3日 前 | 0

| 採用済み

回答済み
Help with while loop programming
Almost there! Give it a meaningful but not confusion variable name, and don't repeat the same calculation. %this function will ...

4日 前 | 1

| 採用済み

回答済み
Negative memory usage?
According to the document ProcessMemUsage—The amount of memory consumed in each phase. Sum the ProcessMemUsage across all the p...

4日 前 | 0

回答済み
Storing Outputs of a two output function recursion
Yes. There is no limitation on the number of outputs for recursive function.

4日 前 | 0

| 採用済み

回答済み
Struct contents reference from a non-struct array object in yout.getElement
Like you said, In workspace yout is 7254x1 double, so you can't do vsignal= yout.getElement('VC_line'); You probably mixed up w...

4日 前 | 0

| 採用済み

回答済み
How to check memory occupancy of a Simulink Model?
No such capability as of R2019b. We've submitted similar requests to the Mathworks. There are something that might be helpful. ...

4日 前 | 0

| 採用済み

回答済み
outputname of variable depending on inputname
utilize inputname()

4日 前 | 0

回答済み
Signal Dimension Error WITHIN Default Simulink Cross Product Block
I ssume you didn't make any change to the "Add" block. Don't specify the size or dimension of your downstream signal (where the ...

5日 前 | 0

回答済み
How can I convert a uint12 data to an int12 data in Simulink?
If you have the fixed point toolbox, then it is straightforward. Define your data types and then use them anywhere in Simulink,...

6日 前 | 0

| 採用済み

回答済み
How would I rewrite this loop to work?
Hint: need to be "T=T+1;" To plot to a different figure, run figure() first.

6日 前 | 0

回答済み
parse error message. "Parse error at '<='. usage might be invalid syntax"
Looks like it needs to be "while i<=3"

6日 前 | 0

回答済み
Help With Nested IF Statements!!!
if T > 0 & T <= To needs to be if T(j) > 0 & T(j) <= To

6日 前 | 0

| 採用済み

回答済み
How to use a Matlab script in a Simulink Matlab Function Block, that is calling Matlab Functions.
You can certainly do that. Just figure out the input/output of your script and make it the top-level function of your MATLAB Fun...

6日 前 | 0

回答済み
find different combinations of splitting a vector
try nchoosek(V,1) nchoosek(V,2) % ... nchoosek(V,8)

6日 前 | 0

| 採用済み

回答済み
Limit range in Data properties of a Chart variable not working?
The Min/Max value in data property won't automatically saturate the actual value of your data. They are there for the purpose of...

6日 前 | 0

| 採用済み

回答済み
How can I format the datetime when the format is not recognized?
a="20200310T102613000"; >> datetime(a,'inputformat','yyyyMMdd''T''HHmmssSSS') ans = datetime 10-Mar-2020 10:26:13

9日 前 | 0

回答済み
Plot a VS graph from simulink scope to Matlab
Simulink Scope is always time based so the x-axis is always time. If you want Torque vs Speed, you need to use the "XY Graph" bl...

9日 前 | 1

回答済み
How can I create three 2,2,x subplots (total 12 subplots in 3 plots) from my surface of my FourierAnalysis?
figure(1) subplot(2,2,1); % more subplot figure(2); subplot(2,2,2); % more subplot figure(3); subplot(2,2,4) % more subp...

9日 前 | 0

回答済み
How can I find specified Block Types in Simulink ?
Advanced, then select BlockType, and set value

9日 前 | 0

回答済み
Error: Function definitions are not permitted in this context
Cut these code from your script. Create a separate .M file called fun.m and past the code. %fungsi objektif function f = fun( ...

9日 前 | 0

回答済み
How do I get stateflow to use parameters in Simulink.parameter object?
If you add a "data1" in Stateflow and specify its scope as "Parameter" and "Type" (meaning data type) as "Inherit: same as Simul...

9日 前 | 1

| 採用済み

回答済み
Index in position 1 is invalid error
before the loop, check the value of n and m. They might not be an integer. You are doing pointer(n,2) for the first loop.

10日 前 | 0

| 採用済み

回答済み
Loading text file with header and using Textscan yeilding empty array
Your code works fine, not sure what is the problem. Another way is to use importdata() out=importdata('file.txt',' ',6) str=s...

10日 前 | 0

回答済み
bode function plot Help
You may not have the Control System Toolbox, which is required for having tf(). Run "ver control" to find out >> H=tf([10,0],...

10日 前 | 1

回答済み
Find column position of trues in a binary matrix
see if you can get it from [i,j]=find(A) >> A = [1 0 1 0 0; 0 0 1 0 1; 1 1 0 0 0]; [R,~]=find(A.'); out=transpose(r...

10日 前 | 0

| 採用済み

回答済み
upgradeadvisor always compares incompatibilities with the latest Matlab release?
The answer is yes. Basically, it is the upgradeadvisor() function contained in each version of MATLAB/Simulink. The output might...

10日 前 | 0

| 採用済み

回答済み
Simulation doesn't see variable when called inside a function
The problem is that in your model, the block 'zad4/Constant' is looking for the parameter 'Value', presummabley from the base wo...

10日 前 | 1

| 採用済み

回答済み
Save out. variables of Workspace to .mat
with model open, press Ctrl+E, select "Data Import/Export", un-check "single simulation output"

10日 前 | 0

| 採用済み

Load more