ENG 6 Lecture Notes - Lecture 14: Concatenation, Substitute Character, Letter Frequency

65 views4 pages
11 Sep 2013
School
Department
Course

Document Summary

All project options involve designing a gui. Properties of objects: edit using interactive interface, edit code directly, refer to objects with tags. Stored in structure called handles, use handles to call objects: matlab will automatically generate code for gui after using interactive interface. Functions for programming a gui: example: make a program called adding. m. Has two editable text boxes edit1 and edit2. Function pushbutton1_callback is run when pushbutton1 is clicked: want to add numbers in edit1 and edit2 when button is clicked, then display in text2 ( a static, noneditable text box): function pushbutton1_callback(hobject, eventdata, handles) Set(handles. text2,"string",num2str(c)): note: need to convert from strings to numbers then back again (can"t add strings) Matlab has functions that simplify string manipulation. Concept: mapping: defines relationship btwn two entities. Ex. between a function value and independent variable: character mapping allows each character to be uniquely represented by numerical value. Created by a character generator from numerical code.

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

Related Documents