Matrix with digits of the input number as diagonal elements

Assignment Help Mechanical Engineering
Reference no: EM13703814

Write the MATLAB program which takes 8 digits number as input, then creates an 8x8 matrix with digits of the input number as diagonal elements and zeroes elsewhere using for loops. Then, execute the program using your student ID as input.

(Hint: You may use these commands: rem(x,y) and floor(x)) and my ID is 11211359

Reference no: EM13703814

Questions Cloud

Cart travels a track and experiences a constant tangential : A cart travels a track and experiences a constant tangential acceleration from point A to point C. The speeds of the cart are 11.2ft/s at point A and 17.2ft/s at point C. The cart takes 4.50s to go from point A to point C, and the cart takes 1.20s to..
Long rotates about an axis perpendicular : A slender rod 0.6 m long rotates about an axis perpendicular to its length and 0.14 m from its center of gravity. If the rod has a mass of 8 kg, determine its mass moment of inertia about this axis
Lbm block is pushed down a frictionless incline with a force : A 10 lbm block is pushed down a frictionless incline with a force of 5 lbf. the incline is 30 degrees relative to the horizontal. if the block starts from rest, what is its speed after it has been pushed 12 ft. Assume that gravity is 32.0 ft/ sec^2
What is torque required to stop it from spinning : A Cylinder of mass 20 lbs, radius 5in and height 10in is spinning about its axis of symmetry (central axis) at 200 rpms. What is torque required to stop it from spinning
Matrix with digits of the input number as diagonal elements : Write the MATLAB program which takes 8 digits number as input, then creates an 8x8 matrix with digits of the input number as diagonal elements and zeroes elsewhere using for loops. Then, execute the program using your student ID as input.
Determine the actual exit temperature for the compressor : A given mass flow rate (.17 kg/min) of an ideal gas flows through an adiabatic compressor operating at steady state. The compressor has an adiabatic efficiency of N(%) = 87.5. The gas has a molecular weight of MW = 28.5 (kg/kmol) and a specific heat ..
Estimate extra cost per year due to increased use of blades : Current airbag regulations specify that they must only pass a test designed to protect a 175 pound male who is not wearing a seatbelt. There is currently a discussion of lowering the explosive force by 30%, so that smaller-sized people (including wom..
Matlab program-average of digits of part using for loops : Write the MATLAB program to find the maximum, minimum and average of the digits of part (a) using for loops. Execute the program and list the output. Note that you are not allowed to use MATLAB commands max(x), min(x) and mean(x), except for checking..
What specific materials are used for solar cells : What specific materials are used for solar cells? What specific properties these materials process in order for the solar cells to the function properly?

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  In each case locate the state on sketches of the t-v and

in each case locate the state on sketches of the t-v and p-v diagrams.a four kg of water at 100c fill a closed

  Calculate the stresses using the thin wall assumption and

a long cylinder pressure vessel with closed ends has an internal pressure of 3 mpa. calculate the hoop stress sigma

  The itaipu hydroelectric power plant has a rated generation

the itaipu hydroelectric power plant has a rated generation capacity of 14000 mwe. there are 20 turbine-generators to

  Plot the temperature profile from fuel centerline to the

a cylindrical fuel rod has a linear power rating of 467 wcm. the radius of the fuel is 1.3 cm. the gap thickness is

  Determine the max discharge rate of water through the pipe

the water in a 8m diameter 3m high above ground swimming pool is to be emptied by unplugging a 3cm diameter 25m long

  Propane undergoes a process from state 1 where p114 mpa

propane undergoes a process from state 1 where p11.4 mpa t160 c to state 2 where p21.0 mpa during which the change in

  Consider a house whose walls are 4 m high and 12 m long two

consider a house whose walls are 4 m high and 12 m long. two of the walls of the house have no windows while each of

  A steam power plant operates with a boiler output of 20 kgs

a steam power plant operates with a boiler output of 20 kgs steam at 2 mpa 600degc. the condenser operates at 50degc

  Calculate the maximum pressure that the reactor is likely

a gas mixture containing 85mole methane and the balance oxygen is to be charged into an evacuated well-insulated

  Consider a small ammonia absorption refrigeration cycle

consider a small ammonia absorption refrigeration cycle that is powered by solar energy and is to be used as an air

  For what range of exit temperatures in c can the

a large pipe carries steam as a two-phase liquid-vapor miture at 1.0 mpa. a small quantity is withdrawn through a

  Determine a the degrees of subcooling of the refrigerant in

a heat pump with refrigerant-134 as the working fluid is used to keep a space at 25 celsius by absorbing heat from

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd