From: dale on 29 Jul 2010 00:50 Hi guys, my code is below %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clc; clear all; Rs1 = [ 0 0 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0 1 0; 0 0 0 0 0 0 0 0 0 0 1 0; 0 0 0 0 0 0 0 0 0 1 1 0; 0 0 0 0 0 0 0 0 0 1 1 0; 0 0 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 2 2 2 2 0 0; 0 0 0 0 0 0 2 2 2 2 2 0; 0 0 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0 0 0] STATS = regionprops(Rs1, 'PixelList' ) SS=STATS(1) TT =STATS(2) % I also do that: [SS TT] = STATS.PixelList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% is there any way i can print the 2 struct arrays that exist in the Variable editor without assigning variables such as 'SS' and 'TT' like I did in my code . thank you dale
|
Pages: 1 Prev: program a simple algorithm Next: Optimising a Time-Series |