Question: a ) Create a 6 6 matrix in the middle two rows, and the middle two columns are 3 ' s and the rest areYou
a Create a matrix in the middle two rows, and the middle two columns are s and the rest areYou have to submit the matlab file in the form of:
YourNameStudentIDQuestionNumber; example:
AmerQ
The commands should be submitted in the form of
file type the commands for each question and save
it seperately
a Amer went to the market. He bought of carrots of apples lettuces
for JD and Pepsi JD each What is the total amount?
b Write the MATLAB command for the following line:
for and
a Create a matrix in the middle two rows, and the middle two columns are and the rest are
s
b Write a MATLAB script file to plot the following on the same figure and on separate one use all
what you learned to express the label, title, color, etc. commands for drawing plot:
where varies from zero to ten with step. The function should be in blue and in red
a Create a row vector start between and with step
b Create a row vector start between and containing exactly values and store the result in
vector
Write a MATLAB commands to do the following:
;;;
a Extract out the row of matrix as a vector and assign this to vector
b Transpose matrix A and store the result in matrix
c Replace the column of matrix A with row of matrix
d Delete the column of matrix
e Create a matrix consisting of all elements in the first two rows ans the last three
columns of matrix
f Find the maximum values in each column of matrix A
g Find the minimum values in each row of matrix
h Sort each row of matrix in ascending order and store the result in
i Evaluate the sum of the column of matrix
s
b Write a MATLAB script file to plot the following on the same figure and on separate one use all
what you learned to express the label, title, color,
etc. commands for drawing plot:
where varies from zero to ten with step. The function should be in blue and in red
a Create a row vector start between and with step
b Create a row vector start between and containing exactly values and store the result in
vector
Write a MATLAB commands to do the following:
;;;
a Extract out the row of matrix as a vector and assign this to vector
b Transpose matrix A and store the result in matrix
c Replace the column of matrix A with row of matrix
d Delete the column of matrix
e Create a matrix D consisting of all elements in the first two rows ans the last three
columns of matrix
f Find the maximum values in each column of matrix A
g Find the minimum values in each row of matrix
h Sort each row of matrix in ascending order and store the result in
i Evaluate the sum of the column of matrix
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
