Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.

Slides:



Advertisements
Similar presentations
Instruction: Use mouses left button. Use mouses left button. If mouse buttons dont work, use arrow keys of keyboard for slide show. If mouse buttons dont.
Advertisements

Instruction: Use mouses left button. Use mouses left button. If mouse buttons dont work, use arrow keys of keyboard for slide show. If mouse buttons dont.
LISTEN TO DIRECTIONS CLOSELY
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
THE PUMPING LEMMA PROVING A LANGUAGE IS NOT REGULAR Dr. Cynthia Lee - UCSD - Spring 2011 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Introduction to Multimedia
Skills: none Concepts: an image representation code, the number of bits in a code, the amount of information in an image This work is licensed under a.
Value Element of Art. The luminosity, or range of lightness and darkness, in a picture.
© red ©
$1 Million $500,000 $250,000 $125,000 $64,000 $32,000 $16,000 $8,000 $4,000 $2,000 $1,000 $500 $300 $200 $100 Welcome.
+ COLOR. + The Color Wheel Color Is the visual quality of objects created by the amount of light they reflect or absorb.
1 Additive Colour Mixing using a Computer Monitor You will use: a Liquid Crystal Display (LCD) or Cathode Ray Tube (CRT) Computer Monitor, this PowerPoint.
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
© Maths Support Service 2007 Binary and Hexadecimal Numbers Next Slide AE98FD AE98FD.
Color Theory Miss Warner Mixed Media 1. Color Theory Painting Rules: Do NOT move on until prompted. Mix all colors in the mixing palette provided. Paint.
Explanation of Web 6, Web 7 and Web 9 at my site Please be sure to bring up the speaker notes for the explanation Intro - Web 6, Web 7 and Web 9.
COLOURS.
INF1090 Part Deux Photography- Photomanipulation.
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Color. -Visual light -An integral part of the sculpture -Creates desired effect -Distinguish items -Strengthen interest.
Color Wheel Color Values Color Schemes The color wheel fits together like an intricate design or puzzle - each color in a specific place. Being familiar.
Color Theory Color Wheel Color Wheel Color Values Color Values Color Schemes Color Schemes.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Daily Sprint START In your own words describe the functions of the following: variable resistor photoresistor fixed resistor.
Sunday Afternoon on the Island of La Grande Jatte ( Un dimanche après-midi à l’Ile de la Grande Jatte ), Georges Seurat,
Images Data Representation. Objectives  Understand the terms bitmap & pixel  Understand how bitmap images are stored using binary in a computer system.
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Colors By Jes Betzold Red YellowBlue Orange PurpleGreen.
Kids S1 Vocabulary U1 Colors. Listen and say the color:
3 Properties of Color Hue-The name of the color
Art Elements Color. COLOR is light reflected off objects.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Tutorial: Reduction from A TM Proofs Dr. Cynthia Lee CSE 105, UCSD Spring 2011 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee,
Intermediates  Warm-Cool-Analogous Objective: You will mix intermediate colors in order make warm, cool, and analogous colors schemes. DRILL: 1.Get a.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
If you say 8 color the ones in your picture purple. If you say 9 color the ones in your picture blue.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
Project 5A and 5B: COLOR 5A Color Chart and 5B Color Scheme Portraits Using Oil Paint.
Daily Sprint START 1. If a computer uses 3A of current and is supplied with 120V of voltage, then what is the total resistance of the computer? 2. A circuit.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
Week 3 DO NOW QUESTIONS. In this setup procedure the programmer intended to create one turtle of each color: red, green, and blue. What went wrong? to.
CRE Programming Club Class 2 (Import JJZ543 and Practice Your Typing!)
Is the practical guidance to color mixing and the visual effects of a specific color combination.
Color Theory Part 2 Before you begin notes, cut out your color wheel and glue it in your sketchbook. If you are still painting your color wheel, leave.
Color Wheel Color Values Color Schemes The color wheel fits together like a puzzle - each color in a specific place. Being familiar with the color.
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
 the relationship between colors  Primary Colors: colors that cant be made by mixing other colors (red, yellow, blue)  Secondary Colors: Colors made.
Pixels, Colors and Shapes
Introduction to Programming in MATLAB
Watch Pete the Cat here:
Elements of Design #1: COLOUR Textiles 3101.
Aim: What is the Value Element used in Design?
Learning to program with Logo
Color Values All colors in computer images are a combination of red, green and blue Each component is encoded as a number means the color is.
Project 5A and 5B: COLOR 5A Color Chart and 5B Color Scheme Portraits Using Oil Paint.
What do these words mean to you?
The RGB LED.
Color Theory.
What Color is it?.
The first stage of vision
Introduction to Programming in MATLAB
Introduction to Programming in MATLAB
Color Theory.
Color Theory.
Presentation transcript:

Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Based on a work at Cynthia Lee, UCSDCreative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported Licensewww.peerinstruction4cs.org 1

EXPRESSIONS Express yourself 2

Which expression does NOT give the same answer as the others? a)a * b + c * d b)(a * b + c * d) c)a * (b + c) * d d)(a * b) + (c * d) e)None or more than one of the above 3

ASSIGNMENTS (not the homework kind) 4

Which of the following is the result of running this code: >> a = 6; >> b = 3; >> a = b; >> b = 5; a)The value of the variable a is the character ‘b’, and the value of variable b is 5 b)The value of variable a is 5 and the value of variable b is 5 c)The value of variable a is 3 and the value of variable b is 5 d)MATLAB will give an error e)None or more than one of the above 5

What is a variable? Variables are like labeled boxes Assignment (=) puts something in the box Assigning one variable to another copies what was in one box and places a copy in the other box Always copies values from right to left 6

Which of the following is the result of running this code: >> a = 6; >> b = 3; >> a = b; >> b = a; a)The value of variable b is the character ‘a’ and the value of the variable a is the character ‘b’ b)The value of variable a is 6 and the value of variable b is 3 c)The value of variable a is 3 and the value of variable b is 6 d)MATLAB will give an error e)None or more than one of the above 7

COLORS IN THE COMPUTER Taking a peek behind the wizard’s curtain 8

To a computer, everything is numbers Everything. 9 What we perceiveWhat it is to the computer Numbers WordsNumbers ColorsNumbers PicturesNumbers SoundsNumbers VideoNumbers Pushing buttons on the keyboard or mouse Numbers Facebook status updateNumbers

Colors in the computer The RGB Color scheme is a way for the computer to represent colors as numbers RGB stands for Red, Green, and Blue All colors in the computer are made by combining different amounts of red, green and blue – In other words, each color is represented by a vector of three numbers: 1 st number says how much red 2 nd number says how much green 3 rd number says how much blue – Each number can be between 0 and

RGB Color mixing Note that when all the colors are combined, the result is white – Not like paint! (brown or black when combined) This picture doesn’t show all the possibilities – Doesn’t show gradations of mixing (little red with a lot of blue, etc) – Doesn’t show gradations of intensity within a given shade (light pink vs dark pink, greys between white and black) 11

Which of these colors is produced by the RGB code ? 12 Hint: a) c) b) d) e) None/other/error

About this class When you use MATLAB later on in scientific applications, you will be working with numbers If you work with images in this class, will you be prepared to work with that numeric data? – Yes! It’s the same skills, because… To a computer, everything is numbers. – Why not practice with matrices of numbers, that just happen to be images? 13