eglecting air friction) is Gravity on Mars is, g = 3.711 m/sec2. Create a table of time vs distance traveled on Mars for each of the following conditions. You should have 3 tables, one for each part a b c, when you are finished. Your tables must have column headings. You do not necessarily need to use Properties.VariableNames, but I prefer it. Values of time from 0 to 120 seconds in 10 second increments. Ten evenly spaced values of time from 0 to 120 seconds. (Evenly spaced does not mean 12 seconds between each!)
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
: The general equation for the distance, d, in meters that a free falling body has travelled (neglecting air friction) is
Gravity on Mars is, g = 3.711 m/sec2.
Create a table of time vs distance traveled on Mars for each of the following conditions. You should have 3 tables, one for each part a b c, when you are finished. Your tables must have column headings. You do not necessarily need to use Properties.VariableNames, but I prefer it.
- Values of time from 0 to 120 seconds in 10 second increments.
- Ten evenly spaced values of time from 0 to 120 seconds. (Evenly spaced does not mean 12 seconds between each!)
Fifteen logarithmically spaced values of time from 0.1 seconds to 100 seconds
g=3.711; d=@(t).5*g*t.^2; %% a t1=(0:10:120)'; dist1=d(t1); T1=table(t1,dist1,'VariableNames',{'Time','Distance'}); disp(T1) %% b t2=(linspace(0,120,10))'; dist2=d(t2); T2=table(t2,dist2,'VariableNames',{'Time','Distance'}); disp(T2) %% c t3=(logspace(-1,2,15))'; dist3=d(t3); T3=table(t3,dist3,'VariableNames',{'Time','Distance'}); disp(T3)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images