1 answer

9. (12 points) Using the MATLAB built-in functions (zeros, ones, eyes), write a MATLAB program to...

Question:

9. (12 points) Using the MATLAB built-in functions (zeros, ones, eyes), write a MATLAB program to create the following matrix
9. (12 points) Using the MATLAB built-in functions (zeros, ones, eyes), write a MATLAB program to create the following matrix: 1 0 0 0 0 0 0 0 0 1 1 0 1 0 0 1 1 0 0 0 1 0 1 0 1 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 1 1 I

Answers

The answer to the above problem is as follows:

  • Form all the sub matrix
  • Concat all the sub matrix into one final matrix
  • and display the final matrix

MATLAB CODE-

%%%%
clc;
%create all the sub matrix
m1 = zeros(2,3);
m2 = ones(2);
m3 = zeros(2);
m4 = eye(5);
m5 = ones(5,2);
%concat all submatrix to form the large matrix
M = [m1 m2 m3;
m4 m5];
disp(M);


IMAGE OF CODE-

1 2 - نيا 4. 5 - 6- 7 - clc; Screate all the sub matrix ml = zeros (2,3); m2 = ones (2); m3 = zeros (2); m4 eye (5); m5 = one

OUTPUT-

Command Window 0 0 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 0 1 1 1 0 0 1 0 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 0 1 0 0 0 1 1

If this answer helps, please give an up vote and feel free to comment for any query.

.

Similar Solved Questions

1 answer
How do you solve the system of equations #-10x+8y=2# and #-2x-4y=6# by elimination?
How do you solve the system of equations #-10x+8y=2# and #-2x-4y=6# by elimination?...
1 answer
Can you show how synthesis would work HO on t Heo r = s = H...
can you show how synthesis would work HO on t Heo r = s = H from > x e Gerice units J. Brac Hz H₂ Har (listlar I Lindlon...
1 answer
A 1.02 kg block of aluminum at 272 degrees C and a 2.75 kg block of...
A 1.02 kg block of aluminum at 272 degrees C and a 2.75 kg block of iron at 152 degrees C are added to a large 3.18 kg copper container that holds 14.5 kg of water at 5 degrees C. What is the final temperature of the system? Thank you!!...
1 answer
PLEASEE HELP ASAPPP 2- (15 pts) Consider the formation of Nitrogen dioxide from Nitrogen monoxide gas and oxygen gas...
PLEASEE HELP ASAPPP 2- (15 pts) Consider the formation of Nitrogen dioxide from Nitrogen monoxide gas and oxygen gas: If 9.0 L of Nitrogen monoxide are reacted with 5.0L O (6) at 0 °C and 760 mmHg, how many liters of Nitrogen dioxide are produced ?...
3 answers
Bonds
On October 1, 2010, Menke Co. purchased to hold to maturity, 200, $1,000, 9% bonds for $208,000. An additional $6,000 was paid for accrued interest. Interest is paidsemiannually on December 1 and June 1 and the bonds mature on December 1, 2014. Menke uses straight-line amortization. Ignoring income ...
1 answer
2. PRACTICAL ASSIGNMENT 2 2.1 Covert the following design into C++. Refer to figure 1 for...
2. PRACTICAL ASSIGNMENT 2 2.1 Covert the following design into C++. Refer to figure 1 for sample output. Save your source file as runProgram1.cpp. Indude your student number, suname and initials and group at the beginning of the source files as comments. Submit anly the C++ source file. DoBlectricit...
1 answer
Presented below are a numbers of balance sheet items for pearl, inc. for the current me...
presented below are a numbers of balance sheet items for pearl, inc. for the current me at 2020 Goodwill 127340 payroll taxes payable 179931 bonds Payable 302340 discount bond payable 15490 cash 362340 land 482340 notes receivable 448040 Note Payable to bank 267340 accounts payable 492340 retained e...
1 answer
Problem # 3 [15 Points] Consider the following single-input, single-output system: (a) Characterize the controllable subspace and the unobservable subspace of the system (b) Determine the transfe...
Problem # 3 [15 Points] Consider the following single-input, single-output system: (a) Characterize the controllable subspace and the unobservable subspace of the system (b) Determine the transfer function and the impulse response of the sys- tem. (c) Is the system asymptotically stable? Is it BIBO ...
1 answer
Chester Corporation is considering purchasing a new dry ice machine for his packaging business. the new...
Chester Corporation is considering purchasing a new dry ice machine for his packaging business. the new machine will cost $75,000 but Chester expects the new machine will lead to him increasing his packaging business by an additional 1,000 per year. Each package CHester sells generates $200 in sales...
1 answer
Question 23 (1 point) Consider the following data that gives the quantity produced and unit price...
Question 23 (1 point) Consider the following data that gives the quantity produced and unit price for three different goods across two different years to answer the following questions. Assume that the base year is 2012. 2012 Price $2.00 $4.00 $2.00 2012 Quantity 2013 Price $2.50 $5.00 $1.00 2013 Qu...
1 answer
DO ALL PARTS OF THE QUESTION AND USE SIGNIFICANT FIGURES!!! IF YOU DO NOT DO THIS...
DO ALL PARTS OF THE QUESTION AND USE SIGNIFICANT FIGURES!!! IF YOU DO NOT DO THIS I WILL DOWNVOTE YOU!!!! QUESTION 7 Save Answer A 437.2 g sample of an unknown substance requires 8460 J to increase its temperature from 19.3 °C to 68.9 °C. The specific heat of the substance is __J/g °C. ...
1 answer
According to Marx: Select one: a. excessive demand would lead to Increasingly severe downturns in the...
According to Marx: Select one: a. excessive demand would lead to Increasingly severe downturns in the business cycle O b. after many years of economic stability, a market economy would suddenly collapse c. a market economy is always in a long-run equilibrium O d. Income would be distributed very une...
1 answer
The comparative balance sheet for Majestic Travel Services, Inc., for December 31, 2017 and 2016, is...
The comparative balance sheet for Majestic Travel Services, Inc., for December 31, 2017 and 2016, is as follows: (dlick the icon to view the comparative balance sheet.) The following information is taken from the records of Majestic Travel Services, Inc. (Click the icon to view the transaction data....
1 answer
Cornerstone Exercise 8-29 (Algorithmic) Unearned Sales Revenue Trademark Lawn Services offers a promotion where they will...
Cornerstone Exercise 8-29 (Algorithmic) Unearned Sales Revenue Trademark Lawn Services offers a promotion where they will mow a customer's lawn 15 times if the customer pays $570 in advance. Required: 1. Make the journal entry to record the customers' prepayment of $570. (Record payment rece...
1 answer
Please show work, thank you
please show work, thank you...
1 answer
+49 +9 1) Two small beads having positive charges 4q and q are fixed at the...
+49 +9 1) Two small beads having positive charges 4q and q are fixed at the opposite ends of a horizontal insulating rod extending from the origin to the point x =d. As shown in figure, a third small negatively charged bead is free to slide on the rod. At what position is the third bead in equilibri...
1 answer
Show work for both questions please!! A constant force acts on a 5.0 kg object and...
show work for both questions please!! A constant force acts on a 5.0 kg object and reduces its velocity from 7.0 m/s to 3.0 m/s in a time of 3.0 s. Determine the force. A 600-Kg car is coasting along a level road at 30m/s. (a) How large is the retarding force (assumed constant) is required to stop i...