How looping Coordinates form array list with comma

1 visualizzazione (ultimi 30 giorni)
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 Commenti
SAMEER ahamed
SAMEER ahamed il 25 Feb 2014
Modificato: SAMEER ahamed il 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

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by