The Top Shelf
Sudoku Clarification
May 4, 2009

There was a typo in the original handout for the final exam. For the Sudoku problem, you should only allow one instance of a particular number in a single row, column, or 3x3 box of the board. The final has been updated to reflect this change.

Image Project
April 23, 2009

NUM_ROWS and NUM_COLS will ALWAYS be equivalent to a multiple of 10. But NUM_ROWS may not always be equal to NUM_COLS. You should be able to change the value of NUM_ROWS or NUM_COLS in your code to various multiples of 10 without having your code break.

Homework Clarification
April 22, 2009

In homework problem 9.3, we instruct you to leave the average value an integer. It is not necessary to do any casting to return a float value.

Updates
April 21, 2009

  1. Homework 9: As stated via e-mail, the due date for homework9 has been extended to Friday, April 24 at 2:30p.m. Please also note that we are aware that there are marked similarities between problem 9.1 in the homework and a problem that you completed in lab. Feel free to use the code that you collaborated on with your partner for the homework, but please do not share code with anyone else. Additionally, note that you should not need pointers to complete this homework.

  2. Lab 10: The final lab of the semester will be next week.

Grades Sent Via E-mail
April 11, 2009

Please make sure that you have been receiving your grades via e-mail. If you have not, please contact the TAs ASAP!

Jukebox Due Date Extended!
March 10, 2009

Due to the issues in the department today we have extended the due date for jukebox until Friday 3/13 at 2:30pm. Please note that there WILL NOT be additional TA hours on Thursday. Make sure that you don't put off things you have questions on until Thursday as there will not be help available. We apologize for this but due to the short notice, we can't reschedule TA hours. Please come to hours tonight and Wednesday with all your questions about jukebox.

Important: Mailing List
March 5, 2009

It has come to our attention that some students are not on the CSCI0040 mailing list. If you have not been receiving e-mails from the TAs, please e-mail us immediately at cs004tas at cs.brown.edu . We have been sending important messages regarding Jukebox via e-mail so don't delay!

New Download Format
March 4, 2009

The lecture files are now available in a convenient .zip format. You will need to unzip the folder after downloading to access the files on your computer. Note that this zipped folder contains all supplementary files, as well as both versions of the lecture slides.

Additional Stencil Code for Jukebox
March 4, 2009

Please download the listall function here for use with the Jukebox project.

Jukebox Materials Reposted
March 3, 2009

We have made some minor changes to the fft_tutorial handout, and have added an extra credit opportunity to the Jukebox handout. If you have already printed or downloaded these files, please do so again.

Help Session Materials Posted Here!
February 22, 2009

For help with homework 4, check out the slides and movie from the help session.

Hw4 HelpSession
February 20, 2009

Due to the length and difficulty of homework number 4 we will be holding a helpsession to help you with loops, functions, and program design on Sunday 2/22 at 3:30pm to 4pm. The helpsession will be held in CIT in the Motorola lab, which is room 16. We will also be presenting the same material at the start of every lab section for 15 minutes. Feel free to come to the Sunday session if you don't want to wait until your lab to get some help with the concepts covered in the homework.

Missed Quiz Policy
February 20, 2009

Regarding the in-class quizzes, and as it has been announced in class, we would like to remind you the following. It is not possible for students who missed a quiz to make it up. One is exempted from a missed quiz if we were informed in advance about the missed lecture or if the lecture was missed due to medical reasons and a medical note is later brought to us. If you had a legitimate reason to miss this first quiz please let us know, and we will make sure this will not negatively affect your grade.

Problem 3.4 Clarification
February 17, 2009

Stephen and Elizabeth will be switching hours next week. Please send an e-mail to cs004tas at cs.brown.edu if you need to speak with one of them specifically. Additionally, Greg will hold extra hours from 4 - 6 p.m. tomorrow, Wednesday.

On Problem 3.4 on Homework 3, please call the subfunction det2by2. You always want your main function, in this case det3by3, and your subfunction to have different names. Also, you only need the hw3.m file for this problem. Thus for Problem 3.4 you will handin 2 M-files, det3by3.m and hw3.m.

Hours Switches for This Week
February 14, 2009

Due to the long weekend, there will be some changes to TA hours. Diana and Jonathan will switch hours, as will Amin and Stephen. Alex will hold hours for Greg.

Lecture 7: projectile.m
February 12, 2009

projectile.m will be posted tomorrow. Thanks for your patience.

Problem 2.6 Illuminated
February 10, 2009

In problem 2.6 of the homework assignment, you are required to create a time vector, consisting of ten elements. The handout instructs you to divide the flight time of the projectiles into ten increments to create this vector. It is important to note that you will NOT be creating two time vectors. Instead of creating one time vector for each projectile, you will be creating ONE time vector with which you will do all further calculations. The time vector that you create should be based upon the projectile with the SHORTER flight time.

For instance, if projectile 1 had a flight time of 10 seconds and projectile 2 had a flight time of 20 seconds, you would create ONE time vector ranging from 0 to 10, with 10 increments. You would then use this time vector for the remaining aspects of the problem.

Homework 2 Deadline and Lab Reminder
February 9, 2009

HW2 is now due at midnight on Thursday because of the issues with MATLAB today. Note that there will NOT be extra TA hours, so start early and get it done as soon as possible.

Also, please note that there will be no lab next week due to the long weekend.

Hours Switch for This Week
February 8, 2009

This week, Elizabeth (eecheever) and Luke (langelin) will be switching hours. That is, Elizabeth will hold hours on Monday from 6 - 8p.m. and Luke will hold hours on Wednesday from 7 - 9 p.m.

Homework and Lab Updates
February 7, 2009

Some corrections and clarifications to hw2 and lab2 have been made. There are new versions of the assignments on the website. Please take a look at the new pdfs to see the changes. We apologize for not catching these sooner.

In homework 2, checking that a number is an integer refers to checking (not its data type but) whether or not the number belongs to the integers, i.e., for instance it has a non-zero decimal part. That is: number 4 is an integer, but 4.15 is not an integer. Using some already known built-in function you should be able to perform this check.

-CS4 TAs

Homework Submission Issues
February 4, 2009

We are aware that there have been some problems with using the handin script to digitally submit homeworks. Refer to the instructions below for clarification. If you have problems with any part of this, PLEASE come to TA hours so that a TA can help you learn how to hand in properly. Please note that there will be no exceptions made in the future for late or missing homework assignments.

  1. Using a shell, navigate to the directory where all of your homework files are located. (use the "cd" command to change directories, and the "ls" command to list all files/subdirectories of the current directory.)
  2. Type 'cs004_handin hwX' (no quotes), where X is the homework number. Hit enter on the keyboard. For example, for homework1, you would type 'cs004_handin hw1'. This would have to be run from your ~/course/cs004/hw1 directory, which is where all your files should be saved.
  3. You will know that the handin was successful because the files that you handed in will be listed in your shell. Double check that all the files that you intended to hand in for that assignment are listed in the shell by the handin script. If a file isn't listed, then it wasn't handed in!
  4. You will also receive a confirmation e-mail that lists what files you handed in. Please check to make sure that you have handed in everything!
Lecture Clarification
January 29, 2009

The errors with the m-file today in class were due to 2 issues:

  1. A script/function/m-file cannot be named after a variable: There was already a variable named "area" and then our m-file was named "area"
  2. Only letters, numbers, and underscores should be used in naming m-files: In an attempt to fix the first error, the m-file was renamed "area-c". Matlab interpreted this as "area(the variable) MINUS c.

Sorry if there was any confusion.

Lab0 Makeup Lab Today
January 27, 2009

Some of you missed the initial lab, lab0, this weekend. We will be holding a makeup lab today, Tuesday 1/27, right after class from 4-5pm. This is the final chance to do lab0 before hw0 is due, hw0 requires you to do somethings we teach you in lab0. Please come to this lab session if you did not come to lab0 over the weekend.
Thank you.

-CS4 TAs

Homework 0 Clarification
January 26, 2009

We realize that the direction in Homework 0 to "place all of your code in a single file named homework0.txt and save it in the directory /u/yourlogin/course/cs004/hw0" may be confusing to you at this point. Please follow the steps below:

  1. Open a shell (a new terminal window) and navigate to /u/yourlogin/course/cs004 (use the cd command)
  2. To make a new directory, type 'mkdir hw0' in your shell (no quotes).
  3. Open a text editor such as kate by typing 'kate &' (no quotes) in your shell. Select 'always use this session' and 'start current session'
  4. Copy all of your input and output from the MATLAB command window to the new file in kate
  5. Complete homework 0 in this file and save it as homework0.txt in the hw0 directory
  6. To turn in the homework, make sure that you are still in the hw0 directory and type 'cs004_handin hw0' in your shell.'

Mandatory First Lab: Lab0
January 21, 2009

If you are thinking about taking CS4 you will need to come to the first lab this weekend. This lab is not optional! It is a very short lab, so don't worry. This lab will be held Sunday 1/25 and Monday 1/26 from 3pm to 6pm. You only need come to any one hour block durring that time. The lab will be held in the Sun Lab, CIT room 143. We will be outside to give you your login information and direct you to the lab.
See you this weekend.

-CS4 TAs

Why Shop CSCI0040?
January 19, 2009

"Learning MATLAB is essential for applied mathematicians. As an Applied Math - Computer Science major I have had at least one class per semester which used MATLAB. I highly recommend cs004 because it teachs you the MATLAB skills you'll need for any future applied math work."
-echeever
"CS4 is a great course for anyone interested in learning the fundamentals of Scientific Computing. By providing an introduction to both MATLAB and C, CS4 introduces basic computer programming concepts and the manner in which these concepts can be used to solve problems in the fields of Engineering, Economics, or other disciplines. I think everyone should take at least one programming course in college, and CS4 is a great place to start--you not only learn programming skills, but analytical and design-based capabilities that will undoubtedly help you in solving real world problems."
-ngillani