CS-UY 1114 Lecture Notes - Lecture 23: Infor
Document Summary
% structures are helpful in keeping information together. % can hold elements of different types and sizes: % rmfield is a function that will remove a field. %if you dont know the scores u can still do an. % labscores: [10 7 10 8 8 9 10 10 10 9 10 10 10 10] % % as you can see, its added to the end. % lets say you ony one some elements of one field ie % scores of first 2 labs. %tells the first 2 scores gives: 10 7. % has too much infor so it only displays field names. % labscores: [10 7 10 8 8 9 10 10 10 9 10 10 10 10] disp(students(2)) %cant put structure in structure as field unless. % % gives the value of the year thats in semester. %a constructor is a function that creates a structure. % dont forget! functions must be in a separate script function acourse =