CS-UY 1114 Lecture Notes - Lecture 23: Infor

60 views4 pages

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 =

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers