Unformatted text preview: of packages in each category and print a label for each sample. a. Test your program with the following data: R B R Y G B B D R Y T Y B R Y G b. Run your program with a data set you have created. The assignment this week does not use arrays or loops. 1. write an m-file that will read one character and and print one label. You will execute this m-file multiple times to get all of the data processed. 2. You will need variables: nred (#red), nblue(#blue)etc. These need to be set to zero before you begin execution. Each time your m-file determines what the label is, it will update the counters ie >>nred=nred+1; 3. Look at the workspace each time you execute your m-file and see how the variables are changing. 4. When you have finished, print out the counters with labels which contain the total number of each type of label that was processed....
View Full Document
This note was uploaded on 09/16/2011 for the course ASE 201 taught by Professor Hayes during the Fall '07 term at University of Texas.
- Fall '07