Filter löschen
Filter löschen

How looping Coordinates form array list with comma

1 Ansicht (letzte 30 Tage)
SAMEER ahamed
SAMEER ahamed am 25 Feb. 2014
Bearbeitet: SAMEER ahamed am 25 Feb. 2014
Hi,
I am new for mat-lab , I have input video file read frames (10) ,having dynamic values below like :
if true
% code
for int i =1:10
matrix{1,i}=[ax,ay,bx,by,cx,cy,dx,dy];%1-by-8 matrix different values
disp(matrix{1,i});
end
end
Note : I got values like ,based on i value increment up to 9(0-9)
result 1 for i value:
2
2
2
2
22
2
2
5
54
3
233
23
2
23
323
32
etc
Note 2: Based on link <%3Chttp://www.mathworks.cn/cn/help/symbolic/mupad_ref/points2d.html%20coordinates%3E coordinates> , I wanna to generate like matrix=[[2,2,2,2,22,22,2,2],[54,3,23,2,23,323,32]];etc.please let me know .thanks
  2 Kommentare
SAMEER ahamed
SAMEER ahamed am 25 Feb. 2014
Bearbeitet: SAMEER ahamed am 25 Feb. 2014
Thank's for reply me, please let me know based on input video file frames .further details please refer to previous forum. Example :
if true
% code
matrix=[[318, 323, 197, 357, 258, 303, 258, 350], [318, 323, 197, 357, 258, 303, 258, 350]]]
end

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by