Community Profile

photo

Fangjun Jiang


2,438 2011 이후 총 참여 횟수

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

담당자

Fangjun Jiang's 배지

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

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
Undefined function or variable 'xlim' Error
run"which -all xlim"?

약 17시간 전 | 0

| 수락됨

답변 있음
Simulink model crashing when including to workspace block
The "To Workspace" block saves variables to the workspace which needs memory to store the variables. It sounds like that you mig...

약 18시간 전 | 0

답변 있음
Issue in To workspace block in 2019b
Drag a "To Workspace" block from the library, if you only change the fomat from "Timeseries" to "array", then the variable in th...

약 18시간 전 | 0

답변 있음
How can I select a specific variable in the .mat file which contains different variables in the user interface?
Use load() with return structure. gongStruct = load('gong.mat'); fieldnames(gongStruct) Use matfile object. Help matfile

약 18시간 전 | 0

답변 있음
How to display a matrix in 1 column?
Don't struggle too much. A for-loop will do. Or displaying "column #" would be more helpful when the array size is bigger. for ...

1일 전 | 0

| 수락됨

답변 있음
how can I read different data types from excel file
[NUM,TXT,RAW]=xlsread(FILE). Get the Raw data.

2일 전 | 0

답변 있음
Error 2019b simulink plotting
Open the scope, View, Style, set the "Marker" to be "none".

3일 전 | 0

| 수락됨

답변 있음
block type "MATLABFcn": not yet supported by simulink coder
Run this in your MATLAB version to bring up the document. web(fullfile(docroot, 'simulink/ug/comparison-of-custom-block-functio...

3일 전 | 0

| 수락됨

답변 있음
eval and inline function
f3=inline('1/(sqrt(x^2+y^2))'); x=1/2; y=5; f3(x,y)

9일 전 | 0

답변 있음
Index exceeds the number of array elements (1)
You need to replace z with z(1), z2 with z(2), z6 with z(6). Similarly for v, v2, ... v6. Some fundermental MATLAB basics: z=r...

9일 전 | 1

답변 있음
Merge of Logical Indexing one dimension matrix from multi dimension?
all(A)

9일 전 | 1

| 수락됨

답변 있음
Execute subsystem in Simulink if condition is met for 5 seconds?
Do an equal comparison (==) between RC_flag and zero, generate this int_flag. Feed int_flag to an Integrator. If the output of t...

10일 전 | 0

| 수락됨

답변 있음
How can I fix the error when I open the example 'ACCTestBenchExample'?
It is likely that the data has not been properly loaded. Run the following to bring up the Help page and click "Open Model" to s...

10일 전 | 0

답변 있음
Indexing a Variable in an Input Prompt
prompt = sprintf('Player %i move x: ', Playerturn)

14일 전 | 0

답변 있음
What is the correct syntax for save_system for SaveDirtyReferencedModels?
save_system('modelT','modelT','SaveDirtyReferencedModels',true), or replace true with 'on'

15일 전 | 0

답변 있음
In Simulink, how do I combine 2 function calls into one to trigger a stateflow?
I would create two boolean signals based on those two methods. Then you can do AND or OR operation and then enable the Stateflow...

15일 전 | 0

답변 있음
How to fit to view custom masked block permanently?
Select All, move all the blocks to the top-left cornor as close as possible.

16일 전 | 1

답변 있음
how to save lists into mat-file while keeping their original name?
for k = 1:length(myFiles) baseFileName = myFiles(k).name; fullFileName = fullfile(myDir, baseFileName); I{k} = xl...

17일 전 | 0

답변 있음
How to set slower time sample for a subsystem inside of another periodic atomic subsystem
Put the S-function inside a Triggered Subsystem, which is set to be triggered by Function Call. Use a Function Call Generator to...

17일 전 | 0

답변 있음
branched signals to merge block
If a signal line goes to a Merge block, this signal line can't go anywhere else (branched). If you really need to use this signa...

18일 전 | 0

답변 있음
How to generate a pwm signal with duty cycle 30%
Use a resetable integrator to generate a sawtooth wave, compare it with a constant value, you'll get a PWM wave. The value of th...

18일 전 | 0

| 수락됨

답변 있음
Possible bug in visdiff - need confirmation and a workaround
I think it is a bug, or at least a defect. I've seen similar issues. Inserting an Inport block in the middle of a subsystem bloc...

21일 전 | 0

답변 있음
errors after update to 2019
It is a function in the Optimization Toolbox. Do you still have this toolbox in new version of MATLAB?

22일 전 | 0

답변 있음
'break' in 'while' loop
From help break In nested loops, break exits from the innermost loop only

22일 전 | 0

| 수락됨

답변 있음
Combining a function and solver to create a M-function in Simulink
Simulink is the perfect tool to solve this problem (get y output based on input A and B). Why take the awkward long route? In fa...

22일 전 | 1

답변 있음
How to find the variables of simulink non-active variants subsystem
from doc Simulink.findVars Simulink.findVars discovers variable usage in inactive subsystem variants only if you select Analyze...

22일 전 | 0

답변 있음
at which piont i have the minimum value
[t,index]=max(z); value=i(index)

23일 전 | 0

답변 있음
To Workspace Block - Output Array Size Problem
A Simulink simulation runs for a period of time. The output being 51x1 size array probably means the simulation ran for 50 steps...

23일 전 | 0

| 수락됨

답변 있음
Can you help me fix a faulty self-resetting integrator?
Right now, the reset trig is "falling" edge. Pure negative value won't trig it. You could add a Comparison block to compare ...

23일 전 | 0

답변 있음
Can someone tell me what is wrong with this?
The problem is, vector x is not defined. When you do x1=5, I think you meant x(1)=5. But even with that, when k=1, x(2) is not d...

23일 전 | 0

Load more