|
Hi. I would like to do the followings in Simulink, but I don't know how to.
Here is what I need to do.
1. I'd lke to have a matrix (of size let's say 10 by 10) defined in workspace. I know I can manually type a matrix in workspace. But I want Simulink to do it automatically.
2. I'd like to update one of the entries of the matrix during a simulation run.
The entry I need to update changes during simulation.
For example, at some point of simulation, I want to update the entry at 1st column and 3rd row. But maybe later, I want to change the update the entry at 2nd column and 4th row. And even later times, I need to update some other entry.
In other words, the entry I need to change keeps on changing during a simulation.
3. To update an entry, Simulink needs to know (import) the current value of the entry. i.e. The new value of an entry is calculated using the current value of that entry.
To import a value from workspace to Simulink, what can I use?? The difficulty is that f the entry I need to import changes during a simulation.. (because the entry I am updating changes during a simulation)
I'd greatly appreciate your help and time.
|