Learning Outcomes:: Birla Institute of Technology & Science, Pilani
Learning Outcomes:: Birla Institute of Technology & Science, Pilani
Pilani Campus
Learning Outcomes:
Note:
1. Lab code files have to be uploaded by 5:50 PM. A unique uploading url for
each lab is shared during the lab hours or directly to your mail. URL
becomes inaccessible after the time period.
2. All the tasks in each lab have to be in one main matlab file with “.m”
extension. However, for function calling, files of the function can be
attached with the main file.
3. Graph plotting should include xlabel, ylabel, legend and titles.
4. When evaluated, all the text results should be printed in the command
window with a statement.
Ex: Find the sum of 1, 2. Answer in command prompt: The total sum: 3.
5. Format of uploading file: “Lab1_2017a3ps0345p.m”.
1
i) Find the sum of the array elements in x (the one -dimensional array created in
c).
j) What happens when I use the same command to the 3d array x3d.
k) Make two arrays containing 100 elements from 1 to 100 in steps of 1 and 5,
respectively.
l) Find the lengths of both the recently created arrays.