Assignment3_20b

Assignment3_20b - c p = 1:length(a); while (p == 1) if a(p)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Tanisha Billups % Matlab (CSC 110-03) % Assignment 2 (pg 114 #20b) % Due: February 18, 2011 % clear clc c a = [-300 2 5 -63 4 0 5 -23 46 0 896 -230 .23 -.01 22]; c = zeros (size(a));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: c p = 1:length(a); while (p == 1) if a(p) >= 0 disp('true') else disp('false') end p = input('Do you want to do it again 0(no) 1(yes)? '); end...
View Full Document

Ask a homework question - tutors are online