StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Computing and Programming with MATLAB - Essay Example

Cite this document
Summary
The author of the "Computing and Programming with MATLAB" paper designs a MATLAB program to calculate the travel time and velocity of two vehicles one moving horizontally while the other moving vertically downwards to cover a distance of one mile (1609m). …
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER94.8% of users find it useful
Computing and Programming with MATLAB
Read Text Preview

Extract of sample "Computing and Programming with MATLAB"

COMPUTING AND PROGRAMMING WITH MATLAB By Computing and Programming with MATLAB INTRODUCTION Two scenarios are being investigated, one of linear horizontal motion and that of linear vertical acceleration. In traveling through air, the beetle will experience upwards and gravitational force acting downwards. Therefore, to estimate the final velocity of the beetle we need to incorporate the drag force due to air resistance and the gravitational component of the velocity for the beetle to fall one mile below. Determination of the Velocity of the porsch is by empirical and mathematical equations of linear motion. In solving for the freefall velocity of the beetle, we shall make use of the MATLAB high level programming language. In these review we shall investigate two scenarios are, one of linear horizontal motion and that of linear vertical acceleration. In traveling through air, the beetle will experience upwards and gravitational force acting downwards. Therefore to estimate the final velocity of the beetle we need to incorporate the drag force due to air resistance and also the gravitational component of the velocity, for the beetle to fall one mile below until it touches the ground. Velocity of the Porsche is easy to determine by empirical and mathematical equations of linear motion. In solving for the freefall velocity of the beetle, we shall make use of the MATLAB high level programming language, which will assist us to compute and display the results. MATLAB programs work hand in hand with various softwares related to programming languages such as JAVA, C++, FORTRAN python, including other windows compatible applications. In these review we shall design for a MATLAB program to calculate the travel time and velocity of two vehicles one moving horizontally while the other moving vertically downwards to cover a distance of one mile (1609m) METHOD First, we estimate the time of travel of the beetle from this relation h = 1/2 gt2 v2 = 2gh v = gt v is velocity of beetle g is gravitational acceleration = 9.8m/s h is height of freefall, =1609m t is time of travel Or 1609=1/2*9.8*t^2 t^2=1609/4.9 = 328.4 t = 18.12 s but v^2 = 2gh Or v^2 = 2*9.8*1609 thus v = 177.6m/s (beetle velocity) DRAG FORCE Minimum drag force (Fd) Fd = 0.46*2.58*1.2*(31533.2/2) =22454.2 Maximum drag force Fd = 1.2*7.1*1.2*(31533.2/2) = 161197.7 Velocity rate at zero drag force = 9.8 m/s Velocity rate at minimum drag force = 9.8 – (22454.2/1200) = -8.91m/s Velocity rate at maximum drag force = 9.8 – (161197/1200) = -124.5m/s Under conditions of no drag force, the gravitational acceleration is maximum and the beetle will fall freely the whole distance because air resistance is zero When the beetle is, falling nosedive there exists some retardation force acting upwards but is minimal because of the streamline nature of the vehicle as it passes through air. In order to achieve maximum retardation, we shall now cause the beetle to fall flat on the wheels exposing maximum area to air resistance; hence the drag force will be highest consequently reducing the velocity of fall. METHODOLOGY In order to launch this program starts up, we need to initially enter the time and distance for the Porsche to cover the one-mile stretch .we shall then allow MATLAB to calculate the velocity as a function of the two variables. We shall then calculate the drag force by use of the formulae available for both minimum and maximum conditions that is when the beetle falls nosedive or flat on to the wheels. It is now possible to calculate the mean velocity of free fall using drag force, mass of beetle, and gravitational acceleration given by application of the respective equations but MATLAB will also calculate this variables easily by computation. Since there is no distance variation, it is assumed that these two distances are the same, and then we can easily compute the time of travel, which shall be displayed appropriately on a screen. RESULTS AND DISCUSSION MATLAB software are quite expensive and require experience in working with them, however it can be used to simplify complex calculations especially those involving multiple objects and classes. In this case, we have two objects, the beetle and the Porsche the classes are as shown within the respective boxes. The events so described in the race callback on each other, for example the event actions of the Porsche are co-related to events conducted by the beetle. We shall then specify the arguments, which go hand in hand with the functions required. CONCLUSIONS AND RECOMMENDATIONS These is the best way to solve complex problems and technical computation This is the best way to solve complex problems and technical computation problems, as well as, day-to-day activity, that the programmer may be interested in grouping data and assigning codes to them. Consider this scenario of the mega race between the beetle accelerating downwards and a turbo-powered engine Porsche. We went ahead and regrouped the data into classes and then eventually subclasses thus using object-oriented programming to create a program that will calculate the velocity of one of the vehicles relative to the other and then display the results that have been computed back to the user. Appendices MATLAB Diagram bebe Beetle Porsch Engineer Display MATLAB Program Node Name (element, name) {return element. node name ()}, : Function (obj, callback, args) Plain MATLAB Program to Calculate the Mean Velocity and Travel Distance >>/ Function. my_function p=[]; b=1; while b question=input() case p aux=input(Enter velocity and time( p) :) if aux Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Computing and Programming with MATLAB Essay Example | Topics and Well Written Essays - 1000 words”, n.d.)
Retrieved from https://studentshare.org/logic-programming/1645273-computing-and-programming-with-matlab
(Computing and Programming With MATLAB Essay Example | Topics and Well Written Essays - 1000 Words)
https://studentshare.org/logic-programming/1645273-computing-and-programming-with-matlab.
“Computing and Programming With MATLAB Essay Example | Topics and Well Written Essays - 1000 Words”, n.d. https://studentshare.org/logic-programming/1645273-computing-and-programming-with-matlab.
  • Cited: 0 times

CHECK THESE SAMPLES OF Computing and Programming with MATLAB

System and signal processing

If only marker type is specified, but not a line style, matlab draws only the marker. Using this command the matlab will draw the graph… Also using ‘linewidth' command boldness of the line can be increased or decreased.... The above command results in the following plot. The new matlab command used in this program is ‘conv(x,y);'.... According to matlab HELP this command convolves vectors x and Algebraically, convolution is the same operation as multiplying the polynomials whose coefficients are the elements of u and v....
8 Pages (2000 words) Essay

The Concept of a Command-Line Interface

An example of such application software is matlab and AutoCAD.... Some programming languages such as BASIC, Python, Forth, LISP, etc all provide a modified interactive version of the command-line interface.... The paper 'The Concept of a Command-Line Interface' presents a method through which we can interact with the operating system of a computer by typing commands in order to perform certain work....
5 Pages (1250 words) Essay

Combining Matlab and Physics

The author of this essay "Combining matlab and Physics" describes these experiments which were carried out to demonstrate how to use an accelerometer to move a platform by combining matlab and Physics.... The data provided by the accelerometer were entered in the matlab program and it wrote codes that answered the questions that followed each experiment.... nbsp; The aim of using matlab is to obtain precise and accurate results and to save time....
1 Pages (250 words) Essay

Numerical Integration and Differentiation

The various measurements (height of hill and distance across have been provided. In order to determine the volume of material to be removed the area of… By assuming the longitudinal section is a curve it becomes easier to obtain it because it helps map it into a graph.... The following specifies the steps find(d>0) and find(d...
3 Pages (750 words) Assignment

The Production of the Velocity

This project uses matlab program to load the available data for acceleration, use the acceleration to generate the corresponding values of velocity and then plot the relevant graphs for the acceleration and velocity of a moving body.... The only statistical tool used in this simulation was matlab....
3 Pages (750 words) Assignment

The Field of Computing

computing refers to any activity, which is problem oriented that requires, benefits from or creates different algorithmic processes through the use of systems like computers.... The computing process includes among other functions, designing, developing as well as establishment of… It also features the art of structuring, processing and managing the different information, making scientific research using and on computers as well as coming up with computer systems that behave intelligently. The field of computing is extremely road, involving software engineering, computer engineering, information systems, computer science as well as the broad field of information technology (Ceruzzi, 2003)....
5 Pages (1250 words) Assignment

Matlab Experiments Analysis

The author of the assignment "matlab" focuses on the description of the experiment.... Besides, they were incorporated into a matlab script.... As the author puts it, the first experiment employed the use of the two systems provided in the lab manual as shown below....
8 Pages (2000 words) Assignment

Why Software as a Service Is Going to Dominate the Next Several Years

SaaS is by far the most widely used service of the cloud in today's time and hence, cloud computing and SaaS are used synonymously sometimes even though SaaS is actually one of the services provided by the cloud.... Cloud computing is a general term used by IT professionals for the delivery of computing requirements.... The cloud computing concept is not actually new.... computing as a utility was developed as a part of MULTICS (Multiplexed Information and computing Service) which was a time-sharing operating system developed way back in the 1960s....
5 Pages (1250 words) Case Study
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us