rec_tjoo_HW03 - student(2).Major = 'Civil Engineering'; for

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

View Full Document Right Arrow Icon
%{ TITLE: HW03 NAME: Timothy Joo RECITATION SECTION: REC13 COLLABORATORS: Myself %} clear all clc %% Problem 4 disp('Problem 4 - ANSWERS') student(1).Name = 'Jake'; student(2).Name = 'Kevin'; student(1).Age = 18; student(2).Age = 19; student(1).Major = 'Biochemical Engineering';
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: student(2).Major = 'Civil Engineering'; for x=1:length(student) fprintf(' %s is %.0f years old and is studying %s. \n', student(x).Name, student(x).Age, student(x).Major) end...
View Full Document

This note was uploaded on 09/27/2011 for the course ECON 101 taught by Professor Gottlieb during the Spring '08 term at Rutgers.

Ask a homework question - tutors are online