Matrix Manipulation in Simulink
Mostrar comentarios más antiguos
Anyone here know how to edit data in a matlab 2D array (table).
I created a table using the xlsread command but now i want to write a function that can edit that array. I want to do this in simulink but can't seem to find a block that can do this.
Respuesta aceptada
Más respuestas (3)
Paulo Silva
el 19 de Feb. de 2011
0 votos
1) Build a GUI, you could just use guide, drag one uitable inside of the GUI, a button to load data and another to save data. MATLAB Basics: Adding a table to a GUI
2) In simulink place an annotation (double click on the background and write something), now press on it with the mouse right button and go to annotation properties, now just put the name of the GUI in ClickFcn, now when you want to edit the array just click on that annotation.
Daniel
el 20 de Feb. de 2011
0 votos
Kaustubha Govind
el 22 de Feb. de 2011
0 votos
I'm assuming that by "edit", you really mean "manipulate". If you've read the data from Excel into a MATLAB workspace variable, you can load it into Simulink using a Constant block and enter the matrix variable name for value.
Categorías
Más información sobre Interactive Model Editing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!