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