1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
baherus [9]
4 years ago
15

The product y = Ax of an m × n matrix A times a vector x = (x1, x2, . . . , xn) T can be computed row-wise as y = [A(1,:)*x; A(2

,:)*x; ... ;A(m,:)*x]; that is y(1) = A(1,:)*x y(2) = A(2,:)*x ... y(m) = A(m,:)*x Write a function M-file that takes as input a matrix A and a vector x, and as output gives the product y = Ax by row, as defined above (Hint: use a for loop to define each entry of the vector y.) Your M-file should perform a check on the dimensions of the input variables A and x and return a message if the dimensions do not match. Call the file myrowproduct.m. Note that this file will NOT be the same as the myproduct.m example. Test your function on a random 3 × 7 matrix A and a random 7 × 1 vector x. Compare the output with A*x. Repeat with a 2 × 6 matrix and a 6 × 1 vector and with a 2 × 6 matrix and a 1 × 6 vector. Use the command rand to generate the random matrices for testing. Include in your lab report the function M-file and the output obtained by running it.
Mathematics
1 answer:
steposvetlana [31]4 years ago
6 0

Answer: m × n matrix A times a vector x = (x1, x2, . . . , xn) T can be computed row-wise as ... .m file function y = myrowproduct(A,x) y=[]; [r1 c1]=size(A); [r2 c2]=size(x); if ... The product y Ax of an m x n matrix A times a vector x (ri,z2, ...,zn)T can be ... Repeat with a 3 x 4 matrix and a 4 x 1 vector and with a 3 x 4 matrix and a 1 x ...

Step-by-step explanation:

You might be interested in
Which expression is equivalent to -32 to 3/5 power
levacccp [35]

<u>Answer:</u>

8

<u>Step-by-step explanation:</u>

We are given the following expression and we are to find the simplest form of this expression:

- 3 2 ^ { \frac { 3 } { 5 } }

First of all, we will factor the coefficient:

3 2 = 2 ^ 5

Rewriting it as:

- ( 2 ^ 5 ) ^ { \frac { 3 } { 5 } }

Applying the exponent rule (a^b)^c = a^{bc} to get:

-2^{5.\frac{3}{5}}=-2^3

-2^3=-8

6 0
3 years ago
Evaluate 8^5/3<br> Helplpppp
morpeh [17]

Answer:

32

plz give brainliest

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
Service calls arriving at an electric company follow a Poisson distribution with an average arrival rate of 5656 per hour. Find
liberstina [14]

Answer:

The average number of service calls in a 15-minute period is of 14, with a standard deviation of 3.74.

Step-by-step explanation:

In a Poisson distribution, the probability that X represents the number of successes of a random variable is given by the following formula:

P(X = x) = \frac{e^{-\mu}*\mu^{x}}{(x)!}

In which

x is the number of sucesses

e = 2.71828 is the Euler number

\mu is the mean in the given interval. The variance is the same as the mean.

Average rate of 56 calls per hour:

This means that \mu = 56n, in which n is the number of hours.

Find the average and standard deviation of the number of service calls in a 15-minute period.

15 minute is one fourth of a hour, which means that n = \frac{1}{4}. So

\mu = 56n = \frac{56}{4} = 14

The variance is also 14, which means that the standard deviation is \sqrt{14} = 3.74

The average number of service calls in a 15-minute period is of 14, with a standard deviation of 3.74.

4 0
3 years ago
Which one is the answer?​
Luda [366]
First one, x^2sqrtx/3
8 0
3 years ago
What is -6 and -4? find the distance between each pair of integers on a number line.
Brilliant_brown [7]
The answer will be 2
8 0
3 years ago
Other questions:
  • If sin(x)=0.28 what is cos(90-x)
    6·2 answers
  • 8<br><br> Base = _______________<br><br> Exponents = ________________
    5·2 answers
  • Aundrey is buying supplies for school. She buys a new calculator, some books and a notebook. The prices of the ideals are listed
    12·1 answer
  • Helpppppppppppppppppppp solve for x
    8·1 answer
  • What is an expression equivalent to 6 - 4(3 - 6m) + 12m that is the product of two factors.​
    15·1 answer
  • Find the discount.<br> Original price: $0.75<br> Discount: ??<br> Sale price: $0.15
    8·2 answers
  • HEEEEEEEELP PLZZZZ ILL GIVE U BRAINLIEST
    12·1 answer
  • Can someone help me w this?​
    6·2 answers
  • Martha's bakery started with 200 cupcakes in the morning. After a busy afternoon there were only 60 cupcakes left. By what perce
    8·1 answer
  • How many 5s go into 3127
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!