Community Profile

photo

Fangjun Jiang


2,240 2011 年以降の合計貢献数

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

連絡する

Fangjun Jiang's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
Run simulink until trigger
Use the "Stop Simulation" block in Simulink->Sinks

約23時間 前 | 0

回答済み
replace with nans after condition
A(A<0.15*A_max)=nan

1日 前 | 0

回答済み
Coder - Create constant for specifying array size
Please refer to the document Code Generation for Variable-Size Arrays web(fullfile(docroot, 'simulink/ug/what-is-variable-size...

3日 前 | 0

回答済み
Why can't i create graph with two matrices in SIMULINK?
Not sure what is the block type for the bottom one, FromWorkspace? Anyway, you need to understand the difference between MATLAB...

4日 前 | 1

| 採用済み

回答済み
How can i edit an object of the type SimulationOutput?
Just double click it in Workspace editor or run "open varname" for API web(fullfile(docroot, 'simulink/slref/simulink.simulat...

5日 前 | 0

回答済み
How to import column data from multiple Excel files with different number of rows?
Since each file contains different number of rows, you will need to use cell array for this. Change inside the loop to Time{K}=...

5日 前 | 2

| 採用済み

回答済み
How can i test interface signals between subsystems?
If the signal goes directly from Subsystem1 to Subsystem2, then by definition their values are the same. Why would you still wan...

5日 前 | 0

回答済み
splitting matrix into separate elements
Drop a Constant block, specify the value as [1;2;3], connect it to a Demux block, specify the "Number of outputs" as 3. Connect ...

8日 前 | 1

回答済み
How can i find input and output signal names for a 'line' in MATLAB?
It will be easier if you construct a simple model and run this example. L = find_system(gcs,'FindAll','on','type','line'); k=1...

8日 前 | 0

| 採用済み

回答済み
Size mismatch error when trying to find a row in an array that is the same as a variable vector.
The problem is here. If target is 1x2 and waypoints is nx2, you can't do waypoints==target waypoints = [100 150; 200 400; 17...

11日 前 | 0

回答済み
Replace a scaler with NaN
https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-0-3-0-2-0-1-not-equal-to-zero

11日 前 | 0

回答済み
Using assignin with array indexing
prepare the full assignment statement and use evalin().

11日 前 | 1

| 採用済み

回答済み
Simulation of transfer function with variable denominator
You can implement this transfer function using an Integrator block, a Gain block (or a Product block) and a Sum block with a fee...

12日 前 | 0

回答済み
List of all subfolders and theire subfolders etc.
Yes. list=dir('**/*.*') will do it. Then check for list.isdir

12日 前 | 0

| 採用済み

回答済み
How do I stop new simulink windows from stealing focus?
What Simulink window? If it is brought up by open_system(), you can use load_system() instead.

12日 前 | 0

| 採用済み

回答済み
Why the first number is not displayed? [SIMULINK]
For matrix formats, each row of the matrix has a time stamp in the first column and a vector containing the corresponding data s...

13日 前 | 1

| 採用済み

回答済み
A(B)=0 What is its meaning?
B is a logical index matrix. You can see the value is 1 (true) or 0 (false) wherever the corresponding value in A is greater tha...

13日 前 | 0

| 採用済み

回答済み
Simulink: get range of values from lookup table
TableData=1:10; dStart=3; dEnd=6; index=and(TableData>=dStart, TableData<=dEnd); SelectedData=TableData(index) SelectedData...

13日 前 | 0

| 採用済み

回答済み
I am not able to change compiler using Mex command to vc++
Follow this page and find the "supported compilers" for R2016a. https://www.mathworks.com/support/requirements/previous-release...

15日 前 | 0

回答済み
Only the value corresponding to the last loop of a for loop being saved in the output array
find() could find more than one match. See "help find"

15日 前 | 1

回答済み
Problems with saving large workspace
You might consider Tall Arrays web(fullfile(docroot, 'matlab/import_export/tall-arrays.html'))

15日 前 | 0

回答済み
Where is the address of simulink or matlab example offered by itself in my PC?
You mean file location? Run this command which sldemo_suspn_3dof

15日 前 | 0

回答済み
Smoothdata- undefined function 'smoothdata' for input arguments of type 'double'
Do you have other smoothdata() function or smoothdata as a variable in base workspace? Anyway, run "which -all smoothdata" to f...

18日 前 | 0

回答済み
How do we keep Simulink Signal definitions and Bus Element definitions in sync?
Use Simulink.Bus.createObject(model,blocks) to create the bus object once all signals are defined, instead of define the bus obj...

18日 前 | 0

回答済み
saving 3 dimensional single data in an Excel file
write each page to each sheet for k=1:size(data,3) xlswrite('Book1.xlsx',data(:,:,k),k) end This will run xlswrite() k times...

19日 前 | 0

回答済み
Get list of libraries blocks that have "changes" in a model
That is called parameterized library links. I couldn't find a way to get the list using find_system(). You could run Model Advis...

19日 前 | 0

| 採用済み

回答済み
Error using grid. Too many input arguments.
params.grid has 3 'on' in it.

19日 前 | 0

回答済み
How to revert changes in data dictionary
discardChanges(dictionaryObj) web(fullfile(docroot, 'simulink/slref/simulink.data.dictionary.discardchanges.html'))

19日 前 | 0

| 採用済み

回答済み
can I release the MATLAB Compiler-generated stand-alone to public?
Yes. royalty-free! web(fullfile(docroot, 'compiler/product-description.html'))

20日 前 | 2

| 採用済み

Load more