Problem: Answer The Following. Present Solution Neatly and Orderly When Needed

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Name: SCORE

Date:
ICT01 – Information and Communication Technology
MATLAB Performance Task 1 50
Answer the following. Present solution neatly and orderly when needed.
Output
Problem (Screenshot of your Matlab command window)

Supposed that the values of x and y are the one given on the excel sheet , find
the following:

(5pts)

4 x3 2
z= −2 x y +24 x
3

(5pts)

w = 3 x 2−3 y 2+ 2 xy + z−6
Output
Problem (Screenshot of your Matlab command window)
(5pts)

Create an array of (number of rows is


included on the excel file) rows and
(number of columns is included on the
excel file) columns, with the use of
matrix creation functions that will give
you random numbers. Assign the result
to a variable named Tomato.

(5pts)

Create a variable named (use your first


name) that contains the second column of
the matrix named Tomato.

(5pts)

Create a variable named (use your last


name) that contains the 3rd column od the
matrix named Tomato.
(5pts)

Using the range of index values, create a


vector named Vfirst containing the 1st
through the 3rd element of (your first
name).

(5pts)

Using the range of index values, create a


vector named Vlast containing the 2nd
through the 4th element of (your last
name).

(15 pts)

Create a Subplot and on the first subplot


put (your first name) on the y-axis and
(your last name) on the x-axis. With a title
My Matlab Plot, use red star marker and
no line in your plot.

On the second subplot put (your first


name) only, with With a title My Matlab
Plot 2, use green solid line with o marker.

On the third subplot put (your last name)


only, with With a title My Matlab Plot 3,
use black dashed line with square marker.

You might also like