0% found this document useful (0 votes)
36 views3 pages

MATLAB Code Examples and Exercises

The document contains 3 MATLAB coding questions. The first asks to write code to sum the elements of the first column in a matrix. The second asks about the purpose of a code, and what would appear in the command window and workspace after running it. The third asks to write code to plot a function with specific x and y labels and a title using one's own name.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views3 pages

MATLAB Code Examples and Exercises

The document contains 3 MATLAB coding questions. The first asks to write code to sum the elements of the first column in a matrix. The second asks about the purpose of a code, and what would appear in the command window and workspace after running it. The third asks to write code to plot a function with specific x and y labels and a title using one's own name.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

11

Q1: Write a MATLAB code to find the summation of elements of the first column
in the following matrix
11
Q2: What is the purpose of the following MATLAB code?
Write the content of the Command window and the Workspace after
executing this program.

Purpose:

Command window:

Workspace:
11
Q3: write a MATLAB code to plot the function
x cos ( 6 x )
y=
e(−0.01 x)

for x in the interval [0, 2л] using 300 equally spaced points. Use your first name
as an x-label and your father name as a y-label and finally use your complete
name as title for your plot.

You might also like