Réponse apportée
Exiting infinite loop on command
Use global variable as a flag to break the loop. Global variables always retains its value belween the function calls. % --...

presque 14 ans il y a | 0

Réponse apportée
What is the difference b/w "Bus Editor" and "Bus-creator" in simulink?
You are little bit confused. *Bus Creator* is the simulink block which takes many input signals and generate bus as output. ...

presque 14 ans il y a | 3

| A accepté

Réponse apportée
Using 'push botton' in GUIDE to open the simulink block's mask.
Suppos your block is *MyBlock* placed in *MyModel*. To open the parameter dialog box write below code in callback function o...

presque 14 ans il y a | 0

Réponse apportée
Print screen of an excel worksheet using a matlab script?
As far as I know, there is no direct cammand in MATLAB to to take screenshot. You can try below piece of code for it. (C...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
How to make a new matrix that consist of specific column of it's old matrix? (separate matrix)
Data(:,2)=[]

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Look up table from Excel Sheet for simulink
How data is formated in your excel sheet? Generally you can read the data from excel sheet using *xlsread()* & create simulin...

presque 14 ans il y a | 0

Réponse apportée
How to get output in a function to be used in another function?
*Function A* function Data = A % Your logic end *Function B* function B(InputData) % Your logic end ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Why does the Simulink memory block delay the data by more than 1 iteration?
For *Unit Delay* block ---> Set the sample time of block to -1 (Inherited). For *Memory* block ---> Select the "Inherited sa...

presque 14 ans il y a | 2

Réponse apportée
Programatically test-run a model before RTW build
I am not sure why your model behaving like "PAUSED" even after executing "term" command. I can not see this behaviour on my mode...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Simulink 'To File' Dynamic File Names
Try in this way for x=1:n % Change the file name fname = ['file' num2str(x) '.mat']; set_param('To...

presque 14 ans il y a | 4

| A accepté

Réponse apportée
Add new line inside text file
See >> doc dlmwrite Use dlmwrite with *-append* option. Correct format --> dlmwrite(filename, M, '-append')

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Final constant from simulink to GUI
*get_param()* & *get_param()* are used to read and set the block properties (attributes). No block directly returns its output v...

presque 14 ans il y a | 0

Réponse apportée
Create and fill an array in simulink
Try usign *Discrete/Tapped Delay* block. It outputs all the collected samples.

presque 14 ans il y a | 1

| A accepté

Réponse apportée
create variable from function input
It dosn't seem to be useful to create variables with the same name as input variables. But still you can do it as function ...

presque 14 ans il y a | 0

Réponse apportée
Using clock as logic operator
Instead of clock, you can use *Sources/Pulse Generator* block. Set the Period & Pulse width of pulse generator according to you...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
storing pulses from target in a 2D matrix
You can use *Sinks\To Workspace* block to store the output in a variable in base workspace in Array, Structure or Structure with...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
simulink use date.xlsx?
There is no block to directly read or manipulate .xlsx files from simulink. For this requirement, write MATLAB code which im...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
MATLAB Programers for hire
If you are looking for *Simulink/Stateflow/RTW/ECoder (in embedded system domain)* related services, I can work for you.

presque 14 ans il y a | 0

Réponse apportée
Masking and base workspace
Initialization commands cannot access base workspace variables, it can only access the variables from *Mask workspace*. Pass...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
RTW generates static functions randomly when using Embdedded Matlab Function block
I have not much used emf block for code generation, so i have never come across such situation. But what i can suggest is, yo...

presque 14 ans il y a | 0

Réponse apportée
How to use a simulink block in m-file
There is no way of using simulink block in the m-file. What you can do is # Create the model with the simulink block. # Pas...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Moving Simulink Data Into the workspace
Variables from 'To Workspace' block are saved in calling-workspace. Your way of saving them to 'base-Workspace is correct. Just...

presque 14 ans il y a | 1

Réponse apportée
Logging Active States/Data during Simulation
Below is the way to log the state informations- 1. Right click on stateflow chart block and select *Log chart signals*. 2....

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Real - time parameter tuning using xPC Target and C - MEX S - Function.
To make parameters as tunable, you can pass the parameter values from base workspace. To change the values at run time - ...

presque 14 ans il y a | 0

Réponse apportée
How did you learn Simulink?
*How did you learn Simulink?* 1% From Work 99% From Simulink documentation *and* Practice...Practice...Practice..... *W...

presque 14 ans il y a | 2

Réponse apportée
control simulink from mfile
To start, stop, pause, and update your model from m-file you can use set_param('YourModel', 'SimulationCommand', 'cmd'); ...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How do I get the file date and time
FileInfo = dir('YourFileWithExtention'); TimeStamp = FileInfo.date; By the way, in which block of simulink you are using...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Delete Column from matrix
Try A.data((c_x+1):end)=[];

presque 14 ans il y a | 0

| A accepté

Réponse apportée
problem about scope.
Use *Sinks > XY Graph*. It has 2 inputs and plots input(Y) against input(X). See <http://www.mathworks.in/help/toolbox/simuli...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How to generate lookup table data into a custom structure?
Instead of defoning look-up table array directly in the Look-up table block itself, define them as *Simulink.Parameter* object i...

presque 14 ans il y a | 0

Charger plus