Question


How to add inport blocks of subsystem if know only subsystem input 's dimensions?
Hi bros As you know, we can get dimension of block as following >> evalin('base', [ 'untitled' '([],[],[],''compile'')']) >...

3 years ago | 0 answers | 0

0

answers

Question


How to know which block connected with outport block in a subsystem?
Hi all, I have outport block in a subsystem. In outside subsystem, there is block connect with this outport block. I want to...

3 years ago | 1 answer | 0

1

answer

Question


How to add relative path file in Simulink Test Manager?
Hi all, I use Simulink Test Manager for model testing. But when copy test project folder to other path or other PC, we need t...

3 years ago | 0 answers | 3

0

answers

Question


How to highlight segment signal line in Simulink?
Hi all, I use find_system function for find all signal in untitled model as: >> lines = find_system('untitled','FindAll','on...

3 years ago | 0 answers | 0

0

answers

Question


Why enum comparison is Incorrect??
Dear all, I am checking my model by MAAB. When I check jc_0651: Implementing a type conversion style, there is warning where ...

3 years ago | 1 answer | 0

1

answer

Question


Get full path of referenced models
Hi all, I want to get full path of referenced models from simulink by matlab comment. Example: Model/AAA_Reference (AAA)/Subsy...

3 years ago | 1 answer | 0

1

answer

Question


How to check if string contains some special character?
Dear all, I have a question that the best way to check if string contains: alphanumeric characters and underscore only (ex: st...

4 years ago | 1 answer | 0

1

answer

Question


How can find all stateflow objects which used function?
Dear bros, Suppose that I have chart block which used floor function, so how can I find where is floor function by command line...

4 years ago | 1 answer | 0

1

answer

Question


What is the ID of styecheck jc_0803 ??
Dear bros ! I want to run stylecheck by script as following example. checkID = 'mathworks.jmaab.jc_0653'; SysResultObjArray =...

4 years ago | 1 answer | 0

1

answer

Question


Can not convert USHORT MAX to ufix16_Sp01
Dear bros, In Simulink model, I use constant block which has value (65535) and data type is ufix16_Sp01 (fixdt(0,16,0.01,0)). B...

4 years ago | 1 answer | 0

1

answer

Question


Separate string with tag_string
Dear bros, I want to separate long string which contains tags to each classify. Example: string = 'tag_A(this is tag A, it c...

4 years ago | 1 answer | 0

1

answer

Question


List of all subsystem(include Model reference) in each layer from model
Dear bros, I want to ask how to list List of all subsystem(include Model reference) in each layer from model. Expected result ...

4 years ago | 1 answer | 0

1

answer

Question


Why Embedded coder generates include to many header files? How to remove these includes?
Dear all, I use Embedded coder for generates C code from model. I configured to generated code only necessary files. But after...

4 years ago | 0 answers | 0

0

answers

Question


Simulink Coder Error: Error occurred when generating rtwtypes.h
Dear all, I have 1 model which created by MATLAB 2015a. It ran and generated code succesful. Now I want to build by MATLAB 201...

4 years ago | 1 answer | 0

1

answer

Question


How to run ModelAdvisor by command line???
Dear all, I want to run ModelAdvisor and put result in current model advisor as following ma = Simulink.ModelAdvisor.getModelA...

4 years ago | 1 answer | 0

1

answer

Answered
Can use uihtml in GUI component such as text or panel ??
I investigated, and we can use java as following hfig = handles.figure1; % existed figure in GUI je = javax.swing.JEditorPane(...

4 years ago | 0

| accepted

Question


Can use uihtml in GUI component such as text or panel ??
I want to add HTML code in GUI. But as I know, uihtml can use with figure only. Do you know other way?

4 years ago | 1 answer | 0

1

answer

Question


How to get common sub string in cell array string?
Example: cell_arr = 3×1 cell array {'A.A1.A11.A111' } {'A.A1.A12.A121' ...

4 years ago | 2 answers | 0

2

answers

Question


Problem with regexp Japanese
Dear all, I want to find the file paths in the large string by regexp such as: As you see, pattern search was good in https:...

4 years ago | 1 answer | 0

1

answer

Question


Problem in find function???
Dear bros, I want to find the index of spesific element in a matrix, but I think there is problem A = [1 0 2 0; 0 3 0 4; 5 0 6...

5 years ago | 1 answer | 0

1

answer

Question


How to get property of blocks
Hi bros, I want to know how to get property of blocks such as inport (value, data type), outport (value, data type). Example: ...

5 years ago | 1 answer | 0

1

answer

Question


List of all Conditional Subsystem
Dear bros, This link discribes about Conditional Subsystem, but I can't find definition and list of it. Following are all of t...

5 years ago | 1 answer | 0

1

answer

Question


How to get signal line and block which connects with trigger port in model by code???
Dear all, As you know, we can find_system trigger_block by trigger_blocks = find_system(system, 'FindAll','on',... ...

5 years ago | 1 answer | 0

1

answer

Answered
How can I convert datetime into double?
You can use datenum to convert each your data to double. Example: >> t = datetime('now') t = datetime 2019/12/1...

5 years ago | 1

Question


Get editable parameters of blocks
Dear all, As we know, we can use get_param function for get value of parameter blocks which we know the parameter name. Exampl...

5 years ago | 1 answer | 0

1

answer

Answered
How can I use the command to realize the selection of coverage filter?
You can create new rule which exclude this block. example: modelName = 'Frame_Test_Sc'; open_system(modelName); set_param(mo...

5 years ago | 0

| accepted

Question


Don't know why SLDV checks compatibility fail
Dear bros, My model update (Ctrl + D) and run (Ctrl +T) was OK. But when i used SLDV to check compatibilty, SLDV report failed ...

5 years ago | 1 answer | 0

1

answer

Answered
calling mex function from Simulink
After you build mexw64 file successful, you can use S-Function block if not, you need to build mex file by mex from S-function ...

5 years ago | 0

Answered
How to code this equation?
This formula mean Y = sum of all Y(i) value with i = 1:n I do not know what is Y(i) so can not write detai. Please refer symsu...

5 years ago | 0

| accepted

Answered
Hello why I get this error when I am going to set the path ?
You can fix as this link https://www.mathworks.com/matlabcentral/answers/437214-problems-with-set-path#answer_353904

5 years ago | 1

Load more