students - out(count).name = name; out(count).age = age;...

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

View Full Document Right Arrow Icon
% 3/17/11 % function out = students() flag = 'yes'; count = 0; while strcmpi(flag, 'yes') count = count + 1; name = input('Student name: \n', 's'); age = input('Student age: \n');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: out(count).name = name; out(count).age = age; flag = input('Would you like to add another name (yes or no)? \n', 's'); end...
View Full Document

Ask a homework question - tutors are online