Command that will create matrix

Assignment Help Basic Computer Science
Reference no: EM13837134

Home Work 1:

1. Write the command that will create matrix A shown in the format below using colon operator for the first row,

2101_create matrix.jpg

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 HW 2:

  • 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 1strow
  • Write down the dimension of 'kid' eg. m x n which means m rows by n columns

Home Work 3:

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 HW 4:

  • 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

Reference no: EM13837134

Questions Cloud

Understanding accounting will not only help you in business : Do you agree or disagree with the statement: Understanding accounting will not only help you in business, but also in your personal finances.
Decide quality level-continuously raise : A team owner tries to decide quality level. By spending another $12 million, the owner expects that the team finishes one place higher. Does this mean that the owner can continuously raise the team’s place in the standings by one place by one place f..
Engineering of web-based software engineering : What are three key characteristics of the engineering of web-based software engineering?
Describe healthcare transactions-asymmetric information : Describe some healthcare situations in which an agent has taken advantage of the principal. Then describe some healthcare transactions that have not taken place because of fears about asymmetric information. Identify some ways that nursing homes can ..
Command that will create matrix : 1. Write the command that will create matrix A shown in the format below using colon operator for the first row,
Prepare a preliminary business report for keith : Your task is to prepare a preliminary business report for Keith. Keith has an in-house style which he expects for business reports, so the main body of your report must be structured using the following headings.
Calculate the residual : Regression line drawn as Y=C+1075x, when x was 2, and y was 239, given that y intercept was 11. calculate the residual.
Explain what will happen to the capital-labor ratio : You are tasked with manufacturing 12 commercial aircraft per month. A new OSHA rule requires that welders be given paid 2 hour break for every 2 hours of work to prevent carpel tunnel syndrome. Using the isoquant-isocost graph as an aid, explain what..
What is the short run average cost of producing : What is the short run average cost of producing 20,000 units?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Develop an i/o port decoder

Using a PLD, develop an I/O port decoder that generates the following high-bank I/O strobes: 300DH, 300BH, 00B6H, and 00EEH.

  Create statechart to balanced four parentheses

Create Statechart to balanced four parentheses.

  Impact on business and society

Emerging Technologies and their impact on business and society

  Threat-vulnerability and exploits assessment practices

There are multiple ways to bring threats and vulnerabilities to light. Common practices and lessons learned can help us explore for known or common threats, but how does an organization with a unique or highly unusual setup discover its vulnerabil..

  Explain how company wants corporation-s business

The company is willing to pay $30,000 for the hardware and the software together and wants the complete software product in 4 weeks. What do you tell him? Bear in mind that your company wants his corporation's business, no matter how unreasona..

  Buffer-overflow attacks

Research and discuss the principle of exploits based on buffer-overflow attacks.

  Ways to send these postcards to friends

There are k types of postcards, each with limited amount. Let there be ai copies of i-th postcard. How many ways are there to send these postcards to n friends?

  Analyze a paper on artificial intelligence

Analyze a paper on Artificial Intelligence and I would like some additional help. I have researched the internet, catalogs and online books.

  Discussion board mis

Discussion board mis.

  Social policy and debate regarding children and technology

See Supreme Court Rules for more information. If Winner's three guiding maxims were utilized, how would this influence social policy and debate regarding children and technology?

  Paper is a proposal for leonard cooper charter school

Paper is a proposal for Leonard Cooper Charter School for improving their network. The stakeholders of the system are facing a number of problems, especially since a new addition to the building was added. This proposal addresses each of the stakehol..

  Local broadcasts cable-satellite

Personal Video Recorders (PVRs): Personal video recorders (PVRs) are digital video recorders used to record and replay television programs received from cable, satellite, or local broadcasts. However, unlike VCRs, which PVRs replaced, PVRs offer m..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd