0% found this document useful (0 votes)
50 views2 pages

King Saud University College of Computer and Information Sciences Department of Computer Engineering

This document contains a 4 question tutorial for a computer engineering course at King Saud University. The questions involve: 1) Entering a matrix into MATLAB and performing operations on it like finding row and column sums 2) Performing element-by-element operations like multiplication and division on two matrices 3) Generating vectors in MATLAB with specific starting and ending values and steps 4) Plotting sine and cosine graphs in MATLAB over the range of -2π to 2π with labeling and legends.

Uploaded by

AboNawaF
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views2 pages

King Saud University College of Computer and Information Sciences Department of Computer Engineering

This document contains a 4 question tutorial for a computer engineering course at King Saud University. The questions involve: 1) Entering a matrix into MATLAB and performing operations on it like finding row and column sums 2) Performing element-by-element operations like multiplication and division on two matrices 3) Generating vectors in MATLAB with specific starting and ending values and steps 4) Plotting sine and cosine graphs in MATLAB over the range of -2π to 2π with labeling and legends.

Uploaded by

AboNawaF
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

King Saud University

College of Computer and Information Sciences


Department of Computer Engineering
Course/ Tutorial No: 340 CEN/1.
Date; Due date: 27/8/1436; 30/8/1436
No of questions: 4

3582
3421

I. Suppose you have the following matrice A:

A=

2
1
1
1

2
3
2
3

3
1
2
1

2
2
1
2

1- Give the related command to enter A to MATLAB.


2- Find the following:
a. Sum of each line of A
b. Sum of each column of A.
II. Now suppose you have also the following matrice B:

B=

1
2
3
4

2
3
2
3

3
3
2
1

2
2
1
2

1- Find A * B element by element.


2- Find A/B element by element.
III. Obtain the following using one MATLAB statement only:
a- 4 elements x-vector starting by 0 and ending by 6.
b- 4 elements x-vector starting by 0, ending by 6 with a step of 2.
c- Draw the conclusion.

Tut1/340CEN/56s

IV. Using MATLAB, plot the following graphs in the range -2 to 2 (for 50 points):
ys(x) = 5 sin(t) with green solid line.
yc(x) = 6 cos(t) with black dashdot line.
&
- Add a comment t in Radian.
- Label the t-axis with radian.
- Label the y-axis with volt.
- Title the plot with ys= 5sin(t) and yc= 6cos(t).
- Display the legend for ys & yc.

Tut1/340CEN/56s

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy