Feeds
回答済み
How to force enumeration type to be defined in generated code.
If you are using Data Dictionary, you can define your enumerations there. On code generation, this will be included in the gener...
How to force enumeration type to be defined in generated code.
If you are using Data Dictionary, you can define your enumerations there. On code generation, this will be included in the gener...
6年弱 前 | 0
回答済み
how i vary load with time?
Store your time based load data as nx2 matrix in workspace. First column with time values and second column with load values. U...
how i vary load with time?
Store your time based load data as nx2 matrix in workspace. First column with time values and second column with load values. U...
6年弱 前 | 1
| 採用済み
回答済み
How to create a Simulink model that gives output 1 if input is even and 0 if it's odd?
Use the rem function using interpreted matlab function and then use a switch to get your desired output
How to create a Simulink model that gives output 1 if input is even and 0 if it's odd?
Use the rem function using interpreted matlab function and then use a switch to get your desired output
6年弱 前 | 0
回答済み
How to export variables from Simulink to Workspace while running a simulation?
You can use interpreted MATLAB function to get the output of your simulation and store it to base workspace using assignin comma...
How to export variables from Simulink to Workspace while running a simulation?
You can use interpreted MATLAB function to get the output of your simulation and store it to base workspace using assignin comma...
6年弱 前 | 0
回答済み
Read data from spreadsheet in Simulink
(1) Simulation time entry field is in seconds. If you set simulation time less than 10hours(36000s) say 5000s then simulation st...
Read data from spreadsheet in Simulink
(1) Simulation time entry field is in seconds. If you set simulation time less than 10hours(36000s) say 5000s then simulation st...
6年弱 前 | 1
| 採用済み
回答済み
How to create variable name for .CSV file in matlab?
Hope you have already imported data into workspace as table. Assuming table name is Reducedfeatures % for defining name for all...
How to create variable name for .CSV file in matlab?
Hope you have already imported data into workspace as table. Assuming table name is Reducedfeatures % for defining name for all...
6年弱 前 | 1
回答済み
How can I get a 'random index' of unique elements in a matrix rather than first/last index ?
M = [2;2;2;2;2;1;1;1;1;3;5;5;5;5;6;6;4;4;4]; [C, ia, ~] = unique(M); randIdx = []; for i = 1:length(C) randIdx = [randId...
How can I get a 'random index' of unique elements in a matrix rather than first/last index ?
M = [2;2;2;2;2;1;1;1;1;3;5;5;5;5;6;6;4;4;4]; [C, ia, ~] = unique(M); randIdx = []; for i = 1:length(C) randIdx = [randId...
約6年 前 | 0
回答済み
Simulink¿how to change parameters over time ?
b = [0 0;10 5;20 2]; p = [0 0;10 0.008;20 0.8]; Create b and p arrays in workspace like shown above - first column is time and...
Simulink¿how to change parameters over time ?
b = [0 0;10 5;20 2]; p = [0 0;10 0.008;20 0.8]; Create b and p arrays in workspace like shown above - first column is time and...
約6年 前 | 0
回答済み
how to limit the frequency of the switching signal to a particular value using simulink
you can provide desired minimum and maximum value. ouput will be capped if the input goes outside the limit
how to limit the frequency of the switching signal to a particular value using simulink
you can provide desired minimum and maximum value. ouput will be capped if the input goes outside the limit
約6年 前 | 0
回答済み
how to limit the frequency of the switching signal to a particular value using simulink
If you just want to limit a signal value, use saturation block.
how to limit the frequency of the switching signal to a particular value using simulink
If you just want to limit a signal value, use saturation block.
約6年 前 | 0
回答済み
How to choose values in the second and third column corresponding to the drawn numbers?
Error occurs because with c you are finding the element which is a part of first column in AA. But this element is not the index...
How to choose values in the second and third column corresponding to the drawn numbers?
Error occurs because with c you are finding the element which is a part of first column in AA. But this element is not the index...
約6年 前 | 0
| 採用済み
回答済み
How to count average number of occurance of data and Nan from text file.
You can use xlsread function if you have the data in the form of excel or csv. Let us take a as the variable holding data. [m ...
How to count average number of occurance of data and Nan from text file.
You can use xlsread function if you have the data in the form of excel or csv. Let us take a as the variable holding data. [m ...
約6年 前 | 0
| 採用済み
回答済み
route simulink empty line
add_line('linesMD','SignalBuilder/1','Out/1','autorouting','on');
route simulink empty line
add_line('linesMD','SignalBuilder/1','Out/1','autorouting','on');
約6年 前 | 0
回答済み
How to link a simulink empty line with with model block and port
add_line('linesMD','SignalBuilder/1','Out/1','autorouting','on'); add_line('linesMD','SignalBuilder/1','Out/2','autorouting','o...
How to link a simulink empty line with with model block and port
add_line('linesMD','SignalBuilder/1','Out/1','autorouting','on'); add_line('linesMD','SignalBuilder/1','Out/2','autorouting','o...
約6年 前 | 0
回答済み
Unable to Enumerated data with Chart in simulink
Try defining enumerated datatype in model workspace. Then in stateflow, for the input, assign the datatype as this enumerated d...
Unable to Enumerated data with Chart in simulink
Try defining enumerated datatype in model workspace. Then in stateflow, for the input, assign the datatype as this enumerated d...
約6年 前 | 0
回答済み
convert boolean into double
you can typecase it like double(x) and use in your transition condition.
convert boolean into double
you can typecase it like double(x) and use in your transition condition.
約6年 前 | 0
回答済み
How to retain the last known values of Matlab function block’s Outports without using the trigger subsystem
Pass the output of the function also as an input. x = fcn(in,x) Thereby you can retain the output of function with previous v...
How to retain the last known values of Matlab function block’s Outports without using the trigger subsystem
Pass the output of the function also as an input. x = fcn(in,x) Thereby you can retain the output of function with previous v...
約6年 前 | 0
回答済み
How do I send a value without press enter on Matlab GUI?
It is possible if you use a drop down list or a popup menu. Every selection can captured using its callback.
How do I send a value without press enter on Matlab GUI?
It is possible if you use a drop down list or a popup menu. Every selection can captured using its callback.
約6年 前 | 0
| 採用済み
回答済み
How to create a Hyperlink to state in a stateflow???
By hyperlink you mean to highlight a particular element in your stateflow model. if yes, then here is an example to highlight a...
How to create a Hyperlink to state in a stateflow???
By hyperlink you mean to highlight a particular element in your stateflow model. if yes, then here is an example to highlight a...
約6年 前 | 0
回答済み
Assign to simulink input in State Flow
I think what you want to do is to start with the input value and then overwrite the input value later during simulation. You ca...
Assign to simulink input in State Flow
I think what you want to do is to start with the input value and then overwrite the input value later during simulation. You ca...
約6年 前 | 0
回答済み
Simulink subsystem selection GUI
RefBlock = find_system(<model_name>,'BlockType','SubSystem'); This gives you list of subsystems in 1st depth in your model (r...
Simulink subsystem selection GUI
RefBlock = find_system(<model_name>,'BlockType','SubSystem'); This gives you list of subsystems in 1st depth in your model (r...
約6年 前 | 0
回答済み
How to achieve 100% Mc/Dc coverage for model having Temporal logic 'tick'?
for example you have use temporal logic in condition say after(10,tick), then one test case should test this condition and pass ...
How to achieve 100% Mc/Dc coverage for model having Temporal logic 'tick'?
for example you have use temporal logic in condition say after(10,tick), then one test case should test this condition and pass ...
約6年 前 | 0
回答済み
Condition and MCDC Coverage Analysis - what do #1 and #2 mean?
In condition coverage, it is enough once if the transition condition as a whole once gets TRUE and once gets FALSE. In Modifi...
Condition and MCDC Coverage Analysis - what do #1 and #2 mean?
In condition coverage, it is enough once if the transition condition as a whole once gets TRUE and once gets FALSE. In Modifi...
約6年 前 | 0
回答済み
How to set blocks' variables and parameters on a script and make them run in Simulink?
Define m and sh in workspace with defined values. Use m in mass field and sh in specific heat field. <</matlabcentral/answers...
How to set blocks' variables and parameters on a script and make them run in Simulink?
Define m and sh in workspace with defined values. Use m in mass field and sh in specific heat field. <</matlabcentral/answers...
約6年 前 | 0
回答済み
How to show requirements in generated code for traceability?
You can use DESCRIPTION property of each block or element (right click -> Properties) What ever you type in Description field w...
How to show requirements in generated code for traceability?
You can use DESCRIPTION property of each block or element (right click -> Properties) What ever you type in Description field w...
約6年 前 | 2
回答済み
Does Simulink ignore the values of the parameters of the blocks in the diagram while detecting algebraic loops?
The input of the SUM block are taken from output of the sum block - which is why you are getting algebraic loop problem, as at t...
Does Simulink ignore the values of the parameters of the blocks in the diagram while detecting algebraic loops?
The input of the SUM block are taken from output of the sum block - which is why you are getting algebraic loop problem, as at t...
約6年 前 | 0
回答済み
dynamic Mask for a subsystem based on user input
You may need to specify path of subsystem instead of gcb. The name of the block should be a string. Is "n" a number? Use: [gcb...
dynamic Mask for a subsystem based on user input
You may need to specify path of subsystem instead of gcb. The name of the block should be a string. Is "n" a number? Use: [gcb...
約6年 前 | 0
回答済み
Using SLDV to check compatibility occurs error "Find requres variable sizing"
SLDV needs to know the size of all outputs in advance. Hence it can only work with fixed size variables. find function can retu...
Using SLDV to check compatibility occurs error "Find requres variable sizing"
SLDV needs to know the size of all outputs in advance. Hence it can only work with fixed size variables. find function can retu...
約6年 前 | 0
回答済み
How can I find a Stateflow junction by its number?
Try running MAAB guidelines. That should point such missing default transitions with hyperlink.
How can I find a Stateflow junction by its number?
Try running MAAB guidelines. That should point such missing default transitions with hyperlink.
約6年 前 | 0
回答済み
Different Coverage for after(1, sec) and after(1, msec). My misunderstanding or just a bug?
What was your step size used in simulation? This could happen when your step size is higher than 1msec as used in this condition...
Different Coverage for after(1, sec) and after(1, msec). My misunderstanding or just a bug?
What was your step size used in simulation? This could happen when your step size is higher than 1msec as used in this condition...
約6年 前 | 0