This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %added it line [rows cols] = size(Grecord) if nargin < 1 n = ceil(cols/3) end pts = zeros(n,2) white = 255 done = 0 j = 1 i = 1 pts_cnt = 1 for j = 1:floor(cols/n):cols while ~done if Grecord(i,j)<white pts(pts_cnt,:) = [i,j] pts_cnt = pts_cnt+1 done = 1 end if i==rows done = 1 end i = i+1 end done = 0 i = 1 end figure(2) %plot(pts(1,:))...
View Full Document
This note was uploaded on 04/20/2008 for the course ENGR 190 taught by Professor Staff during the Spring '08 term at Santa Clara.
- Spring '08