Write a scilab script named prob_01 sce

Assignment Help Mechanical Engineering
Reference no: EM131326194

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 = π*Radius2

Perimeter of a Circle =2π*Radius

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

Reference no: EM131326194

Questions Cloud

Detriment of social welfare : Appraise this statement: In equilibrium, a monopsonistic hospital will hire fewer nurses at lower wages than would a hospital in a more competitive market, to the detriment of social welfare.
Challenging aspects of going from a legacy system to new one : Legacy systems are particularly difficult to replace, and the conversion strategy is often complex. What are some of the most challenging aspects of going from a legacy system to a new one? Which conversion strategy would you adopt? Support your a..
Is this a violation of the second law : In an isothermal decrease of the magnetic field, heat is absorbed from one reservoir and converted completely into work. Is this a violation of the second law? Explain.
Seemingly contradictory facts : Comment on this issues and provide a plausible explanation for this seemingly contradictory facts.
Write a scilab script named prob_01 sce : ENGR 112: 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.Write a SciLab script named Prob_05.sce, th..
Develop business recovery strategies for sangrafix : Develop business recovery strategies for SanGrafix, a video game design company. The strategies should contain detailed guidance and procedures for restoring a damaged system unique to the system's security impact level and recovery requirements
Why do efficient markets benefit society : What is an efficient market? Why do efficient markets benefit society? Define arbitrage and the law of one price. What role do they play in our market system?
Derive an expression for the heat rejected : Such a refrigerator is called a "heat pump" and can warm a house in winter by refrigerating the ground, outside air, or water supplied in the mains. Assume a value of 5 for the coefficient of performance and comment on the effectiveness of a heat ..
What is storage and why is it risky : What is storage? Why is it risky? What role does it play in the economy? Why is delivery important if so few futures contracts end in delivery?

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