Réponse apportée
Static Functions in Real Time workshop
These are generally utility functions which are generated with tha same name in different model. One option is that, you can ge...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How to close Simulink model subsystems
No need of using lots of variables & loop. Just find all the subsystems in the model and close them. close_system(find_sys...

presque 14 ans il y a | 1

Réponse apportée
Opening other GUI with radio button
In you radio callback function you can directly call other GUI. For example function radiobutton1_Callback(hObject, eventd...

presque 14 ans il y a | 0

Réponse apportée
How to load a mat file (with its workspace) to GUI
You can load the .mat file to your GUI function workspace using load('YourFile.mat') Once the vaiabled are loaded and c...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
overwrite and append files
To overwrite or create new file fopen('FileName','w'); To append an existing file fopen('FileName','a'); See fopen >> doc ...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How can I insert a specific number in a specific position of a sequence?
Seq = '100023000'; Pos = 6; NewSeq = [Seq(1:Pos-1) '1' Seq(Pos:end)];

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Problems with Working with A GUI to Simulink and back in realtime
*(1)* To update the model during simulation, you can call set_param('YourModel','SimulationCommand','update') from your ...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
find a value & store in new variable
new_variable = A{2}(find(ismember(A{1,1},[2])))

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Simulink doubt
Put your system in 'Enabled Subsystem' and enable it after 1 sec using a unit delay block. Someting like this <<http://oi42....

presque 14 ans il y a | 1

| A accepté

Réponse apportée
.mat file
You can use MAT-file interface library to read & write MAT files from standalone C or Fortran code. See <http://www.mathwork...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Real time Workshop / Embedded coder: Command Line Functions to download Tunable Parameters
<http://www.mathworks.in/help/toolbox/rtw/ug/bs61qx2.html#bp7mz8d Using External Mode Programmatically> *[EDITED]* I am no...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
pass a parameter to a sfunction written in
For C s-function you can use *ssGetSFcnParam()* function to access the parameter entered in S-functions dialog box. See ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How to get system date and time into simulink?
Use below code in embedded matlab function block. It will give the date and time components as separate output. function [Y...

environ 14 ans il y a | 3

| A accepté

Réponse apportée
a{20,20}(3,1) ??
Elem = zeros(3,1); ValueCell = cell(20,20); ValCell=cellfun(@(x)(Elem),ValCell,'UniformOutput', false) :-...

environ 14 ans il y a | 0

Réponse apportée
How to run a simulink model using a program? what is the command used?
sim('YourModel'); OR set_param('YourModel', 'SimulationCommand', 'start'); Using *set_param('YourModel', 'Simulatio...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Saving mat file with many signals from Simulink
Save your variables from simulink to workspace using *ToWorkspace* block. Assign specific name to each variable. And in your ...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
matlab script to simulink
See <http://www.mathworks.in/help/toolbox/simulink/ug/f6-106261.html MATLAB Function Blocks>

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How can I send a result to the workspace and take the same result from workspace ??
Trying writing variable A using stateflow chart with ml operator. Chart will update the variable in workspace at every sample ti...

environ 14 ans il y a | 1

Réponse apportée
Replacing a string
[num, txt]=xlsread('Book1.xls'); txt=strrep(txt,'private','0.1'); txt=strrep(txt,'public','0.2'); txt=strrep(txt,'une...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Regarding controlling icon parameters of a susbsystem
Use set_param('YourSubsystem','MaskDisplay','image(imread(''YourImage.jpg''))');

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Regarding: Creating a subsystem
In your button callback function, use % Get the array of handle for selected blocks blkh=get_param(find_system('YourMode...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Regarding GUI/Simulink
Call new_system() function in the callback of edit text function edit1_Callback(hObject, eventdata, handles) str =...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
how to clear the edit text automatically?
In your button callback function set(handles.edit1,'String',''); where *edit1* is your edit text

environ 14 ans il y a | 1

| A accepté

Réponse apportée
how to read in the static text?
In your callback function, where you have access to *handles* structure StrVal = get(handles.text1,'String'); Anywhere e...

environ 14 ans il y a | 0

Réponse apportée
My variables in workspace are updated but not on variables "From Workspace" to the simulink model
Variable to be resolved in model using "From Workspace" block must be in time series Array or Structure formate. This means that...

environ 14 ans il y a | 0

Réponse apportée
How to read and print a line from a file using matlab
To print a line in a text file, see >> doc fprintf To read a line from a text file, see >> doc fscanf >> doc tex...

environ 14 ans il y a | 1

Réponse apportée
running a model repetitively from a m-file using sim() command
I am not clear what exactly you want to do. You can *stop* the simulation from m-file, change your parameter (pi) and *start*...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
tracking an element from an array
Find value of Y at time tm Value = Y(T==tm);

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Regarding controlling one GUI using another GUI
Find the good examples of GUIs including the one you require <http://www.mathworks.com/matlabcentral/fileexchange/24861 here>. ...

environ 14 ans il y a | 0

Réponse apportée
display of amplitude and time at each point in a range of a signal in simulink
Create a m-file s-function, in which you can collect the Y values at your X values and plot it on figure. --OR-- Save the ...

environ 14 ans il y a | 0

| A accepté

Charger plus