Assignment4_pg132_12

Assignment4_pg132_12 - for i = 1: length(v) if v(i)...

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 4 (pg 132 #12) % Due: February 25, 2011 % %function [new] = Assignment4(v) clc v = [1 70 1];
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for i = 1: length(v) if v(i) >= 60 v(i) = -1; elseif v(i) == i/10 remainder = 0 v(i) = 10 %remainder % v(i) = 10 end end disp(v)...
View Full Document

This note was uploaded on 05/01/2011 for the course HCSC 110 taught by Professor Amosjohnson during the Spring '11 term at Morehouse.

Ask a homework question - tutors are online