Question: PART I: Do this in MATLAB Create a vector x containing all integers from 1 to 1 0 0 . Create a vector Y containing
PART I: Do this in MATLAB
Create a vector containing all integers from to Create a vector containing the
following, in this order: dots
Create a vector containing the first elements of Create a vector containing elements
through of Create a vector containing all the elements of with an even index.
Create a matrix with all ones. Create a matrix with all zeros. Create a matrix
with all elements equal to
Create a vector containing random elements distributed in the interval
Given matrix ;;; create another matrix containing first two
rows and the first and the third column ie row indexes and column indexes
from
Given vector and integer number create matrix containing ntimes
in the first row, ntimes in the second row, etc. ie
NOTE: You get full credit for this problem by attempting a solution. Just try it
PART II: The sphere pictured to the right floats above
the surface of the water at a height that is proportional to
the mass of the person inside plus the mass of the sphere
material. The height, is related to the mass, by the
following equation:
where is the density of water, and is
the radius of the sphere, m The mass of the empty
sphere material is kg
A battery of tests were run before bringing this fun
device to market, including measuring the height of the
sphere above water while people of different weights
were inside. Download the height data from the Moodle
page. It is contained in a file called HWdata.txt
Using the "load" command, bring the h values into a matrix, and use the "size" command to
find out how many data values are present.
In a second matrix use the equation above to find the mass of each participant in the test.
Remember to subtract the mass of the empty sphere.
What is the mass of participant And participant
Find the average of the masses of participants and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
