Réponse apportée
Simulink Coder - Customizing stateflow generated code
Unit delay block just have a state variables which stores the previous value of input. Similarly in Stateflow, you can use a ...

presque 13 ans il y a | 0

Réponse apportée
Relation between header and Simulin.bus objects
*Q:* why does LCT needs the redundant simulink.bus object in the workspace if this information is already contained in the heade...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
how does work S-Function block in simulink?
See *<http://www.mathworks.in/help/simulink/sfg/maintaining-level-1-matlab-s-functions.html Level-1 MATLAB S-Functions>*.

presque 13 ans il y a | 0

Réponse apportée
how to call the simulink values into the m.file?
Write your simulink outputs to matlab's base workspace using *<http://www.mathworks.in/help/simulink/slref/toworkspace.html To w...

presque 13 ans il y a | 0

Réponse apportée
mex file error on mac, works on windows
mex files are compiled binary code which are platform dependent. A mex file compiled for windows platform will not work on other...

presque 13 ans il y a | 0

Réponse apportée
Modelling in simulink to obtain a function taking one parameter after code generation
Use *<http://www.mathworks.in/help/simulink/slref/switchcase.html Switch case>* block.

presque 13 ans il y a | 0

Réponse apportée
Simulink Coder-Customizing grt.tlc generated source code.
There are very few code customization options are available with *GRT* target. AFAIK, there is no option in *grt* to remove the ...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
How to call structure value in simulink?
Simply put *Test_Structure.a* or *Test_Structure.b* in constant block to use their values.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to import the array format values in simulink one by one?
You can use *Signal Routing/Index Vector* block to select the elements of array.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Show image of variable Simulink model in Matlab GUI
If you want to display the image of simulink model in your GUI then you can follow the below steps * Suppose your model is *M...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Is it possible to give a hex input to stateflow chart from simulink?
What do you mean by hex input? If you mean hex represented number (like 0x5A), then it is just a representation of number. Yo...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to obtain a header file with customized name on code generation from an enum defined in a script(.m) file in matlab?
You can generated the enum definitions in the separate header file using *HeaderFile* and *DataScope* properties during the defi...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
I/O operations How to delete a file if exist?
You can open the file directly in write mode fh = fopen('ResultFile.txt','w'); If file already exists, this will over-wr...

presque 13 ans il y a | 7

| A accepté

Réponse apportée
Why can't I restore disabled links from a model StopFcn callback?
It could be because executing *StopFcn* is also part of simulation. And you can not modify the library link of a block during th...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to put informations in a Simulink model?
You can write commands to generate your data inside model's *PreLoadFcn* <http://www.mathworks.in/help/simulink/ug/using-callbac...

presque 13 ans il y a | 0

Réponse apportée
I was told to press a green button to accept an answer. But where is the green button?
Open your question (If you are reading this, then you have already opened a question). At the top of each answer to your ques...

presque 13 ans il y a | 1

Réponse apportée
How to configure S-Function Builder from command line?
See *<http://www.mathworks.in/support/solutions/en/data/1-AWIVV1/index.html?product=ML&solution=1-AWIVV1 this solution>* on how ...

presque 13 ans il y a | 2

| A accepté

Réponse apportée
simulation control in m-file
set_param('ModelName', 'SimulationCommand', 'start') set_param('ModelName', 'SimulationCommand', 'stop') set_param('Mode...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to choose the values from matrix
Do you mean something like this... Data = [1 2 3 4 5; 10 5 6 7 9; 20 8 47 9 6; 30 4 7 ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
what does mean : C:\Documents and Settings\Albert\errorbar.m
It means that you have written a script *errorbar*. Scripts never accepts or return argument.... And you are calling this script...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
problem with working IF Block
Double click output ports in your if action subsystem and set *Output when disabled* property to *held*.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Using Simulink from code
First of all, purpose of simulink is to model the behavior of a dynamic system (mathematical and logical modelling). Making a in...

presque 13 ans il y a | 0

Réponse apportée
How to use y1 y2 y3... variables in for loop?
Y = {y1;y2;y3;y4;y5;y6;y7;y8}; for j=1:8, subplot(1,8,j);bar3(Y{j});view(-90,0); end

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Read strings from a text file and pass it to variables
fid = fopen('file.txt'); % Read all lines & collect in cell array txt = textscan(fid,'%s','delimiter','\n'); % C...

presque 13 ans il y a | 1

Réponse apportée
What is xout variable?
*[Updated 1]* *xout* is the logged data variable contains state value of the model. * Goto Configuration Parameters > Data...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Problem with non tunable parameters of embedded matlab function
I tried same thing and found that it is working properly. Refer *<http://www.mathworks.in/help/simulink/examples/migration-to...

presque 13 ans il y a | 0

Réponse apportée
How to change C-coder settings to create static variables in the "Model step function"?
There is no configuration option available to change the storage class specifier of variables in generated step function. Ins...

environ 13 ans il y a | 1

Réponse apportée
creating .mat files with variables
a=10; b=rand(100,128); c=rand(116,128); d=rand(1,128); save('myfile.mat','a','b','c','d');

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How do i pause simulink for a moment ?
Instead of puasing the simulation to collect data, use run time data access methods of simulink. Using these methods data can be...

environ 13 ans il y a | 1

Réponse apportée
is it possible to generate multithread code from simulink model?
Find the below page on your simulink coder documentation Simulink Coder >> User's Guide >> Model Architecture and Design >>...

environ 13 ans il y a | 0

Charger plus