Cash-back offer from April 23rd to 27th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 25.00

HomeWork 1 100% Satisfaction Guaranteed!

Question posted by
Online Tutor Profile
request

Home Work 1.1
1. Write the command that will create matrix A shown in the format below using colon operator for the first row,
𝐴=[0123456700789012] 𝑖𝑓 𝐾−𝐼𝐷=𝐾00789012
2. Now write the command that will access and extract ‘4’ from first row of ‘A’ and save it in ‘B’
3. Write the command that will add ‘B’ with element at location (2,4) of ‘A’ and save the result in ‘C’
4. Extract the row containing your K-Id and save into a new variable called ‘kid’
5. What are the dimensions of ‘kid’?

Hints for HW1.1:
 Use ‘:’ operator to create the first row of A then switch to the next row using ‘;’ and then define the numbers of your K-ID separating them using comma ‘,’ or spaces eg. A=[m:n;1 2]
 Find the row and column number in which ‘4’ is location in A, then form the index pair to address that location eg. A(m,n) is the element in A on the mth row and nth column
 Add number at location (2,4) of A to B eg. A(m,n)+B
 Access all elements only in the 2nd row and extract them to ‘kid’ eg. A(1,:) will access 1st row
 Write down the dimension of ‘kid’ eg. m x n which means m rows by n columns

Home Work 1.2
1. Specify size/dimension of the matrix ‘A’ created in HW1.1. Also write the command that will find the size in MATLAB
2. Create an ‘ones’ matrix of the same size as ‘A’ and add it to ‘A’. Save the result into ‘D’
3. Now transpose ‘D’ and save it onto ‘E’. What is the size of matrix ‘E’?
4. Get a number from the user, save it in ‘f’ and subtract 10 from it. Save the result onto ‘f’
5. Use the three basic display and printing statements to print the new value of ‘f’ consisting of following four phrases
“The value entered by the user was”
Value of f
“. It was modified to”

Final value of f
Hints for HW1.2:
 Mention dimensions of matrix ‘A’ and verify it using MATLAB eg. [m n]=size(A)
 Create an ones matrix using ones(m,n) and add it to ‘A’
 Use “ ‘ “ operator to transpose and find its size
 Use input() to get number from user
 Perform specified operation and use disp(), fprintf and sprint() to display the same statement

Available Answer
Other Similar Questions
User Profile
Symone

Homework Assignment AA

Receive excel file too Homework Assignment AA all at 10 ...
User Profile
Symone

Homework Assignment AA

Kindly receive your completed Homework Assignment AA. There are two files namely word containing description and an excel file containing calculation of ratios...
User Profile
quizh...

Homework Assignment 3

Employee Salary Department dep1 dep2 dep3 dep4 3 $32,782 1 $32,782 $35,467 $23,654 $65,487 8 $32,920 1 $32,920 $35,468 $36,578 $46,184 9 $29,548 1 $29,548 $29,876 $37,548 $54,899 18 $39,828 1 $39,828 $43,674 $53...
User Profile
DEEPE...

Stat Homework Help

STAT 200 Week 7 Homework Problems: 10.1.2 Table #10.1.6 contains the value of the house and the amount of rental income in a year that the house brings in ("Capital and rental," 2013). Create a scatter plot and find a reg...
User Profile
Symone

Milestone 2 Assignment

Homework Assignment 2. Kindly receive your completed work. Download both word and excel file attached. Thank you. ...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35