Mathematics
Mathematics, 20.02.2020 19:42, duke4527

The counter in a for or while loop can be given explicit increment: for i =m:k:n to advance the counter i by k each time. In this problem we will evaluate the product of the first 10 odd numbers 1 � 3 � 5 � . . . � 19 in two ways:

(a) Write a script file that evaluates the product of the first 10 odd numbers using a for loop.

(b) Evaluate the product of the first 10 odd numbers using a single MATLAB command. Use the MATLAB command prod.

Thanks a lot!!!

answer
Answers: 2

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 12:50, lasardia
Suppose the probability of selling a car today is 0.28. find the odds against selling a car today.
Answers: 3
image
Mathematics, 21.06.2019 19:30, auviannadority13
Equation for the calculation double 2 and then add 5
Answers: 1
image
Mathematics, 21.06.2019 22:20, azolber
In a young single person's monthly budget, $150 is spent on food, $175 is spent on housing, and $175 is spend on other items. suppose you drew a circle graph to represent this information, what percent of the graph represents housing?
Answers: 1
image
Mathematics, 22.06.2019 00:30, gthif13211
I've been working on this for a few days and i just don't understand, it's due in a few hours. you. the direction of a vector is defined as the angle of the vector in relation to a horizontal line. as a standard, this angle is measured counterclockwise from the positive x-axis. the direction or angle of v in the diagram is α. part a: how can you use trigonometric ratios to calculate the direction α of a general vector v = < x, y> similar to the diagram? part b suppose that vector v lies in quadrant ii, quadrant iii, or quadrant iv. how can you use trigonometric ratios to calculate the direction (i. e., angle) of the vector in each of these quadrants with respect to the positive x-axis? the angle between the vector and the positive x-axis will be greater than 90 degrees in each case. part c now try a numerical problem. what is the direction of the vector w = < -1, 6 > ?
Answers: 1
Do you know the correct answer?
The counter in a for or while loop can be given explicit increment: for i =m:k:n to advance the coun...

Questions in other subjects:

Konu
Arts, 05.02.2021 01:50
Konu
Mathematics, 05.02.2021 01:50
Konu
Physics, 05.02.2021 01:50