Question
Matlab: Engineers use both English and SI (Systeme International dUnites) units on a regular basis. Some fields use primarily one or the other, but many
Matlab: Engineers use both English and SI (Systeme International dUnites) units on a regular basis. Some fields use primarily one or the
other, but many combine the two systems. For example, the rate of energy input to a steam power plant from burning fossil fuels is usually measured in Btu/hour. However, the electricity produced by the same plant is usually measured in joules/s (watts). Automobile engines, by contrast, are often rated in horsepower or in ft lbf/s. Here are some conversion factors relating these different
power measurements: 1 kW = 3412.14 Btu/h = 737.56 ft lbf/s
1 hp = 550 ft lbf/s = 2544.5 Btu/h
1-Read 'kilowatt.txt' one number at a time and build a 4x3 matrix of kilowatt values using (row,col) indexing in nested
for loops. Get the row and column indexes for the overall minimum and maximum kilowatt values.
2-Convert the kilowatt values to btu/h, hp, and ft lbf/s.
Create one matrix with each of the above unit measurement 4x3 matrices as a column: kw, btu/h, hp, and ft lbf/s.
Sort the combine matrix by the kilowatt column.
3-Print the original matrix of all unit measurements with a title and column headers. See output below.
Print the overall minimum and maximum values in each unit matrix using the same row and column index found in #1 above
for the kilowatt matrix. See output below.
Print the overall minimum and maximum values, again, using the first and last rows of the sorted matrix. See output below.
You do not know the number of rows.
Pad 15%, D 21:40 Program: assign06.m Read kilowatt .txt one number at a me and build a 4x3 matrix of kilowatt values using (row,col ndexing in nested. for loops Get the row and column indexes for the overall minimum and maximum kilowatt values 2-Convert the kilowatt values to btu/h, hp, and ft lbf's Create one matrix w th each of the above un measurement 4x3 matrices as a column: kw, btwh, hp, and ft lbf's Sort the combine matrix by the kilowatt column 2-Pr the original matrix of a measurements with a e and column headers. See output below. Print the overall minimum and maximum values in each unit matrix using the same row and column index found in #1 above for the kilowatt matrix. See output below Print the overall minimum and maximum values, again, using the first and last rows of the sorted matrix, See output below You do not know the number of rows Problem Constants: (with units as needed) Filename kilowatt .txt Number of rows (4) and columns (3) Problem Inputs: (with units as needed) New commands Kilowatt values fopen. fscanf nested for loops, p.334 Problem outputs: (with units as needed) (row.col) index for matrix element btu/h print a matrix as one column, p.124 ft lbf's minimum and maximum values other variables. with units as needed) As needed Equations: See above output Power Conversion Values Btu/hr hP ft lbf/s 115.5 39411 0.7 154.9 85190.0 29.9 102016.5 0.1 2205 98.2 335010.0 131.7 72415.0 63976.6 18.7 25.1 13829.0 66.0 225079, 8 88.5 48652.7 59.3 202288.4 79.5 43726.2 115.7 394943.9 55.2 85370.1 104.2 355403.7 139.7 76823.2 99.0 337902.2 32.8 73040.1 379266.9 149 8198 1.4 83.9 2861, 17.5 112.4 61846.5 113.1 385808.3 151.6 83395.4 Minimum and Maximum kw with coversion units kW Btu/hr ft lbf/s 18.7 63976.6 25.1 13829.0 using row, col, for min kw 115.7 394943.9 55.2 85370.1 using row,col for max kw 18.7 63976.6 25.1 13829.0 using first row of sorted matrix 115.7 394943.9 155.2 85370 using last row of sorted matrix NOTE Submit via Canvas: Your submitted file(s) MUST be spelled and cased as instructed MATLAB program file assign 06.m COMP 1200m 2017sp-assign06 -p 2 of 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started