Fangjun Jiang
What is a model? Professional Interests: Model-Based Development
Statistics
RANK
23
of 263 179
REPUTATION
8 758
CONTRIBUTIONS
13Questions
3 433Answers
ANSWER ACCEPTANCE
76.92%
VOTES RECEIVED
1 338
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0Public Channels
AVERAGE RATING
CONTRIBUTIONS
0Highlights
AVERAGE NO. OF LIKES
Content Feed
i dont understand the matlab fucntion any help ?please
You need to double click that "MATLAB Function" block. It will open in an Editor. There will be MATLAB code in that function. Mo...
3 jours ago | 0
Compatibility of Matlab 2017b S-function C-Code on a HIL D-Space setup that is using Matlab 2017a?
The best way is for you to export R2017b version model to a R2017a version model so your customer can use it. Of course, that re...
3 jours ago | 0
How can I resolve this error ?
You specified input data, but there is no root level input ports, which means no input data is needed. If you've done this manu...
3 jours ago | 0
Creating a simulink signal with Boolean datatype
What you did is correct. However, it may cause error if the incoming signal connected to the Inport block "In8" is not boolean. ...
10 jours ago | 1
|accepted
How can I show NaN as Error not Exist?
I guess the true intension is like the code below. If ErrorT is initially NaN, then "ERROR DOES NOT EXIST" will be displayed. If...
11 jours ago | 0
Accessing Mixed-Signal Blockset in Simulink
Mixed-Signal Blockset is introduced in R2019a. It is a separate toolbox, which will need to be acquired separately. If you don't...
11 jours ago | 0
Clock/pulses controller in Simulink
If you want to adjust the width or phase while the simulation is running, then you can use the Slider block. Add the Slider bloc...
11 jours ago | 0
How can I use named RAM arrays in the Simulink 1-D Interpolation block?
Lookup Table Dynamic
11 jours ago | 0
|accepted
How to rename signal in Signal Data inspector ?
Double click that signal line in the Simulink model, give it a valid signal name, the signal name will then appear in the Data I...
12 jours ago | 0
How to Make a Simulink Scheduler for a Matlab Block Function to run each 40 ms of simulation?
Use a Function-call Generator block, specify the sample time. Put the MATLAB Function block inside a triggered subsystem, specif...
12 jours ago | 0
|accepted
How can i pass a string from simulink mask to matlab function block
With R2018a (with the String Constant block) or later, you can do this, with a little extra effort. Add a 'String Constnat' blo...
13 jours ago | 0
Is there a way to pass the name of an input signal to a matlab function block in simulink?
Not through passing but you can get it through get_param(). Note that some functions are not supported for code generation. fun...
13 jours ago | 0
Simulink does not support 'Array' format for logging multiport data. Change the logging format of the Scope to 'Dataset', 'Structure', or 'Structure with time'.
See document web(fullfile(docroot, 'simulink/gui/format.html')) To use Array format, all logged states and outputs must be: ...
14 jours ago | 0
Implicit scalar expansion doesn't work in MATLAB function block.
Good news. It seems it is available in R2021b, but not in R2021a. Check //www.tatmou.com/help/releases/R2021b/coder/u...
14 jours ago | 0
Use #define values from a Matlab function
You might need to add the C header file and source C code file to the model, Ctrl+E, Simulation Target, Follow the example in...
14 jours ago | 0
Trying to read a new licence into LMTool on Linux
Name primary license file as license.dat, name secondary license file as xxx.lic. Put both in matlabroot\licenses folder and the...
17 jours ago | 0
Difference between successive rows in a column
a=magic(6); b=diff(a(:,4)) a(2:end,end+1)=b
17 jours ago | 0
How to make this string a = '(0 0 0)' into a double b = [0 0 0]?
a = '(12 2.8 1.22)'; b=sscanf(a,'(%f %f %f)') b=transpose(sscanf(a,'(%f %f %f)'))
17 jours ago | 0
Sharing Custom Simulink Library via Toolbox
//www.tatmou.com/help/matlab/matlab_prog/create-and-share-custom-matlab-toolboxes.html //www.tatmou.com/help/...
17 jours ago | 0
Compare all the signals from 2 data inspector or .mat files
This is exactly what Simulink Data Inspector does. Follow the documentation and examples. //www.tatmou.com/help/simul...
17 jours ago | 0
How to select a subsystem for convertToModelReference with an unknown subsystem name?
Since you have only one Subsystem block in the root level of the model, this will return this Subsystem. find_system(args,'Sear...
17 jours ago | 1
|accepted
Disable TransportDelay warning when time delay is set to 0
I understand the convenience of your using the TransportDelay block. When there is no delay, simply set the delay to be zero. Bu...
18 jours ago | 0
fprintf use with error
use single quote mark, not double quote mark a=1.2; fid=1 fprintf(fid, 'this is my number %f', a)
18 jours ago | 0
Simulink "globals" not working as expected
"global" data store is not meant for saving data between different simulation runs. Refer to this: web(fullfile(docroot, 'sim...
21天时间前| 0
|accepted
Masked Subsystem: How to pass a double vector to a constant?
I don't know why this old question suddenly appears at the top. I believe the answer to this question is a trick. Use mat2str()...
21天时间前| 0
The Problem Of Multiple Gotos?
This is a bad practice or even incorrectr practice to put a "Goto" block inside a library component, which you know will be used...
21天时间前| 0
using a stateflow as a subsystem reference with some parameters to be editted after instantiation
Create your Stateflow chart and create parameter variables, add a mask to the Stateflow chart to bring all those parameter varia...
24 jours ago | 0
|accepted
How do I manage the Model configuration parameters when using variant with several system targets ?
You can have multiple model configuration sets saved with the model and switch them. It can be done manully or through API. htt...
26 jours ago | 0
|accepted
how to find index from matrix in another matrix?
%C is the logical index matrix. A=zeros(2,3,4); A(:,:,4)=4; A(:,3,4)=5; C=or(A==4,A==5) %To use it to select correspondin...
27 jours ago | 0
How to open a Simulink example using command
Most likely, you don't have the toolbox installed. Or, if installed, the path is not correctly set. Try these two commands in yo...
environ un mois ago | 0