Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

question on target tracking using simulink blocks

2 visualizaciones (últimos 30 días)
Pooja
Pooja el 27 de Feb. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Sir i'm working on target tracking. I took image from workspace and found out target coordinates in next frame. These coordinates generated through simulink blocks should go to workspace for a new image and the loop should repeat.
So how do i send my answer form simulink to workspace. plz help

Respuestas (1)

ES
ES el 27 de Feb. de 2014
You can use a to Workspace block (Available under sinks in the Simulink Block Library).
Say your co ordinate variables are X_coordinate and Y_coordinate, You can use this X_coordinate and Y_coordinate as the variable names in the simout block. These values will be saved in the workspace during/after simulation. The Next iteration can pick up.
  2 comentarios
Pooja
Pooja el 27 de Feb. de 2014
sir i tried simout and changed its names as xc and yc but in the work space its getting stored as 1x1 struct and it doesnot contain the coordinate value
ES
ES el 27 de Feb. de 2014
Its a struct yes. The values will be available at xc.signals.values and yc.signals.values

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by