tickets - fine = 50 + (v-80)*3; elseif v >= 90...

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

View Full Document Right Arrow Icon
function[fine]=tickets(v) v = round(v); fine = 0; fine = 20 + (v-60)*1; fine = 30 + (v-70)*2;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: fine = 50 + (v-80)*3; elseif v >= 90 && v <=99 fine = 80 + (v-90)*4; elseif v >=100 && v <=109 fine = 120 + (v-100)*5; elseif v >=110 fine = 1000; end...
View Full Document

This note was uploaded on 11/16/2009 for the course ENGIN 7 taught by Professor Horowitz during the Spring '08 term at Berkeley.

Ask a homework question - tutors are online