
Concept explainers

To find:
The value of the expressions A.*B, A*B and B*A by hand and then verify the results in MATLAB.
Answer to Problem 2.5P
Solution:
The values of the expressions A.*B, A*B, and B*A are 
Explanation of Solution
The given matrices are,
And,
Substitute 
Substitute 
Similarly substitute 
Now, verifying the expression output by using MATLAB command.
MATLAB Code:
A = [1 4;3 3]
% Define the command to get the matrix “A”.
B = [1 2;-1 0]
% Define the command to get the matrix “B”.
A.*B
% Define the command to get the output of the expression “A.*B”.
A*B
% Define the command to get the output of the expression “A*B”.
B*A
% Define the command to get the output of the expression “B*A”.
Save the MATLAB script with name, chapter2_45251_2_5P.m in the current folder. Execute the program by typing the script name at the command window to find the value of the expressions A.*B, A*B and B*A by hand and then verify the results in MATLAB.
Result:

Therefore, the values of the expressions A.*B, A*B, and B*A are 
Want to see more full solutions like this?
Chapter 2 Solutions
Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving
- Dave Hughes owns a local restaurant. He wonders if a redesign of the menu will increase, on average, the amount customers spend when visiting his establishment. For the following scenario, pick a statistical method we discussed regarding comparing two groups that would be appropriate for analyzing the problem. a) Hughes records the mean sales the week before the change and the week after the change and then wonders whether the difference is statistically significant. [ Select ] b) Hughes randomly samples 100 people and shows both menus to each person, asking them to rate each menu from 0 (very poor) to 20 (excellent) and then wonders whether the difference is statistically significant. [ Select ] c) Hughes randomly samples 100 people and randomly separates them into two groups of 50. He asks those in group 1 to give a rating of ‘positive’ or ‘negative’ to the old menu and those in group 2 to give a rating of ‘positive’ or ‘negative’ to the new menu. He then computes the proportion of…arrow_forwardPlease don't answer of this statistics and probability question without knowledge.arrow_forwardPlease don't use ChatGPT! i will unhelpful. statistics and probaarrow_forward
- Don't answer without proper knowledge of this statistics and probability question:arrow_forwardSearch A random sample of n₁ =217 people who live in a city were selected and 107 identified as a "student". A random sample of n₂ =109 people who live in a rural area were selected and 66 identified as a "student". Find the 98% confidence interval for the difference in the proportion of people that live in a city who identify as a "student" and the proportion of people that live in a rural area who identify as a "student." a. The point estimate for difference in population proportions (City group minus Rural Area group) = Round answers to 3 decimal places. -0.112 b. Fill in the blanks of the following statement. Round answers to 3 decimal places. We are 98 0% confident that the difference in population proportion of people who identified as a "student" in city and rural area falls between -0.247 0.022 0.022 and c. Select the correct conclusion based on the above confidence interval. O Since the above confidence interval gives only negative values, we have 98% confident that the…arrow_forwardCould you please provide solutions to the follwoing questions.Thanksarrow_forward
- search A random sample of ni A random sample of n₂ "student". 217 people who live in a city were selected and 107 identified as a "student". 109 people who live in a rural area were selected and 66 identified as a Find the 98% confidence interval for the difference in the proportion of people that live in a city who identify as a "student" and the proportion of people that live in a rural area who identify as a "student." a. The point estimate for difference in population proportions (City group minus Rural Area group) = Round answers to 3 decimal places. -0.112 b. Fill in the blanks of the following statement. Round answers to 3 decimal places. We are 98 0% confident that the difference in population proportion of people who identified as a "student" in city and rural area falls between -0.247 ✔and 0.022 0.022 c. Select the correct conclusion based on the above confidence interval. Since the above confidence interval gives only negative values, we have 98% confident that the…arrow_forwardCould you please help me answer parts b,d and e. Thanksarrow_forwardה The state of CT claims that the average time on death row is 15 years. A random survey of 75 death row inmates revealed that the average length of time on death row is 17.7 years with a standard deviation of 6.2 years. Conduct a hypothesis to test the state of CT's claim. What type of test should be run? t-test of a mean Oz-test of a proportion The alternative hypothesis indicates a two-tailed test O right-tailed test O left-tailed test Calculate the p-value. (Round properly to 4 decimal places) What is the decision? O We fail to reject the claim that the average time on death row is 15 years We reject the claim that the average time on death row is 15 years Submit Question F4 F3 F2 W E 14 POS UP T DELL F5 F6 F7 F8 F9 F10 F11 711 5 dos % $ 54 Οι 6 R T Y & 7arrow_forward
 College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning Elementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage Learning Elementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage Learning Algebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage Learning Algebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage Learning
 Algebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning Algebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning Elements Of Modern AlgebraAlgebraISBN:9781285463230Author:Gilbert, Linda, JimmiePublisher:Cengage Learning, Elements Of Modern AlgebraAlgebraISBN:9781285463230Author:Gilbert, Linda, JimmiePublisher:Cengage Learning, Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning





