reading input from workspace in simulink
Afficher commentaires plus anciens
is there any work arround to read input data from workspace without using fromworkspace component in simulink so that i can read these data irrespective to define time column
thanks in advance
Réponses (2)
Azzi Abdelmalek
le 2 Mar 2013
Modifié(e) : Azzi Abdelmalek
le 2 Mar 2013
0 votes
7 commentaires
Niveen Morsi
le 2 Mar 2013
Azzi Abdelmalek
le 2 Mar 2013
What do you mean: under certain condition occurance, give an example
Azzi Abdelmalek
le 2 Mar 2013
Modifié(e) : Azzi Abdelmalek
le 2 Mar 2013
Niveen Morsi
le 2 Mar 2013
Azzi Abdelmalek
le 2 Mar 2013
You can use Matlab function block (Formerly named Embedded function). You can use A(k), A is your array, you can declares k as persistent, and increment it when it's necessary.
Niveen Morsi
le 3 Mar 2013
Azzi Abdelmalek
le 3 Mar 2013
TAB
le 4 Mar 2013
0 votes
Use a Constant block to import the complete matrix from workspace at once. Further use Demux or Index Vector to decompose the matrix into its elements.
No need to fetch the matrix elements one by one from workspace.
Catégories
En savoir plus sur Signal Import and Export dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!