Info

この質問は閉じられています。 編集または回答するには再度開いてください。

question on target tracking using simulink blocks

2 ビュー (過去 30 日間)
Pooja
Pooja 2014 年 2 月 27 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (1 件)

ES
ES 2014 年 2 月 27 日
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 件のコメント
Pooja
Pooja 2014 年 2 月 27 日
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 2014 年 2 月 27 日
Its a struct yes. The values will be available at xc.signals.values and yc.signals.values

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by