Write a scilab script named prob_01.sce

Assignment Help Mechanical Engineering
Reference no: EM131328261

ASSIGNMENT

For this homework you will be creating scripts in SciLab. You will turn in electronically, each of the scripts requested below. This is not a group project, so do your own work. Contact me if you have any questions.

1.) Write a Scilab script named Prob_01.sce, that takes no inputs and returns the vectors below.

• Use the colon operator to create a vector starting with -9 and ending with 52 in increments of 0.5.

• Use the linspace function to create a vector of length 12 that is linear spaced from 15 to 70.

2.) Write a Scilab script named Prob_02.sce, that will take in any size vector and return the following information:

• The sum of the values in the vector

• The smallest number in the vector and its location

• The largest number in the vector and its location

• The average of the vector

• The length of the vector

• The transposed version of the vector

• A 1x2 vector containing the first and last value of the vector

3.) Write a Scilab script named Prob_03.sce, that will take in any size matrix and return the following information:

• The sum of the values in the matrix

• The smallest number in the matrix and its location

• The largest number in the matrix and its location

• The average of the matrix

• The size of the matrix

• The transposed version of the matrix

• The inverse of the matrix

• A 1x2 vector containing the first and last value of the matrix

4. Write a SciLab script named Prob_04.sce, that takes no inputs and returns a 15x15 matrix of all zeros, with the major diagonal containing the values of 12 using the ones() and diag() functions.

5. Write a SciLab script named Prob_05.sce, that takes no inputs and returns a vector solving the following system of equations using matrix operations.

x + y - z = 6

2x - y + 2z = 3 3x + 2y + 5z = 35

6. Write a SciLab script Prob_06.sce, that will graph each of the following equations using the subplot command. Remember to name each plot, label the axis with

the correct units, and include the grid.

• Radius = 0 to 10 cm in 0.1 cm increments.

• Volume of a cube = Radius3

• Area of a Circle = m*Radius2

• Perimeter of a Circle =27c*Radius

• Volume of a Sphere = (4/3)m*Radius3

Reference no: EM131328261

Questions Cloud

Develop a process pattern that addresses the given problem : A common problem during communication occurs when you encounter two stakeholders who have conflicting ideas about what the software should be. - Develop a process pattern that addresses the given problem.
What is the bond current price if the market rate : A 12 year bond has 6 years left to maturity and its coupon rate is 8%, paid semi-annually. Consider each of the following situations separately. What is the bond’s current price if the market rate is 4.5%? If the required return on this bond (the cur..
Do you feel you used a rational decision-making model : Finally, what about the third approach to decision-making - intuition? How did you use intuition in your decision-making process? Explain. (Remember that we often combine our "gut feelings" with some rational dimension.)
Debt ratios are fixed in terms of market value and redo part : Finger Enterprise has the opportunity to invest $2 million today and expects after tax cash flows of $1.2 million at time 1, and 1.4 million at time 2. The appropriate cost of capital for all-equity financing is 12%, the debt cost is 8%, and FE’s tar..
Write a scilab script named prob_01.sce : ENGR 112: Write a Scilab script named Prob_01.sce, that takes no inputs and returns the vectors below.Use the colon operator to create a vector starting with -9 and ending with 52 in increments of 0.5.Use the linspace function to create a vector of l..
Research the cultural differences between countries : Provide an opportunity to utilise your skills and knowledge to research the cultural differences between countries.
Why you selected the architecture of this case study : Describe any shortcomings associated with your chosen architecture pattern for the case study.
What three questions will you ask the executive leaders : What three questions will you ask the executive leaders of Warehouse Distribution, Inc. to evaluate whether or not they operate the company based on biblical principles?
Set up general ledger accounts for general ledger accounts : PF 061579- Using the following blank forms (make as many copies as necessary), set up the general ledger accounts for the general ledger and insert the beginning balances for the accounts from the post-closing trial balance.

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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