This preview shows page 1. Sign up to view the full content.
Unformatted text preview: c %In this case the same x matrix has been created as is the case with y. The %entire matrix x is placed inside the sin function, so MATLAB will %calculate the sin of every element of x, and now assign it into the matrix %y. This method is much more direct as MATLAB doesn't have to look for the %row and the column of x, it just evaluates the sin everywhere. This %process takes approximately 0.9 seconds....
View Full Document
This note was uploaded on 02/18/2010 for the course ENGINEERIN 7 taught by Professor Patzek during the Spring '08 term at University of California, Berkeley.
- Spring '08