the matlab code is written following the steps a to d in the question. array is created in the first step manually, then calculated the height using the formula given in the question, table is created and taken output using simple table command, the column title is edited using the 'VariableNames' command, fprintf is used to print the title of the table. code and the output is given below. (note: every command starts with % is explanations to next command)
Code:
clear all; clc;
% initialization for time
t=[0;2;4;6;8;10;12;14;16;18;20;22;24;26;28;30];
%the height of the rocket
height=-4.9.*t.*t+125.*t+500;
% table created
T=table(t,height);
% fprintf statement
fprintf('The table of height of the rocket v/s time\n')
% to print the table with appropriate column headings
T=table(t,height,'VariableNames',{'time_seconds'
'height_meters'})
Output:
matlab program At time t 0, when a rocket's engine shuts down, the rocket has reached...
In MATLAB At time t=0 when a rocket's engine shuts down, the rocket has reached an altitude of 500 m and is rising at a velocity of 125 m/s. The height of the rocket as a function of time is 9.8 h(t)= t? +125t+500 for t > 0 2 Create a time array t from O sec to 30 sec with an increment of 1 sec and a corresponding array for the height h. Plot the height of the rocket...
Using Matlab. I can't seem to get the fprintf part to display the values in 2 columns. Could someone help me with that Before calculators were readily available (about 1974), students used tables to determine the values of mathematical functions like sine, cosine, and log. Create such a table for sine, using the following steps: • Create a vector of angle values from 0 to 27 in increments of T/10. • Calculate the sine of each of the angles, and...
A rocket, initially at rest on the ground, accelerates straight upward with constant net acceleration, from time t=0 until, at which time the fuel is exhausted. Neglect air resistance and assume that the rocket stays close enough to the ground that the acceleration due to gravity (after the rocket engine stops) is given by g. a) Find the maximum height, h, that the rocket reaches above the ground. b) Find the total time of flight, that the rocket is in...
You throw a baseball directly upward at time t = 0 at an initial speed of 14.1 m/s. What is the maximum height the ball reaches above where it leaves your hand? Ignore air resistance and take g = 9.80 m/s2. maximum height: 10.143 m At what times does the ball pass through half the maximum height? earlier time at half maximum height: 1.035 Incorrect later time at half maximum height: 1.017 S Incorrect Classes are canceled due to snow,...
A probe has been launched vertically from the surface of Mars. At time t 0, it has reached a height of y1,0 320 m, and is moving upward at vy10 80 m/s when its engines cut out. At the same moment, the mother ship is y20 1500 m from the Martian surface, moving down directly toward the probe at 25 m/s and slowing down at the rate of 0.80 m/s2. On the surface of Mars, the gravitational acceleration is gMars-3.72...
A company has received an order to manufacture 75 customized units of an entertainment cabinet. The company is being offered $960 per cabinet and the CEO must decide whether or not to accept the order. An analysis of the production process for the cabinet reveals that a new, special-purpose lathe will be required. The estimated cost of the lathe is $14,400, although there is some uncertainty due to new tariffs. The variable cost is more difficult to estimate because the...
#include <iostream> #include <iomanip> #include <vector> using namespace std; Part 1. [30 points] In this part, your program loads a vending machine serving cold drinks. You start with many foods, some are drinks. Your code loads a vending machine from foods, or, it uses water as a default drink. Create class Drink, make an array of drinks, load it and display it. Part 1 steps: [5 points] Create a class called Drink that contains information about a single drink. Provide...