Loading
Home › Computer Science Help › matlab code
Status: Completed

matlab code

Date Posted: 18/06/2018
Category: Computer Science
Due Date: 20/06/2018
Instruction
NUMBER 1; Write a small matlab program to compute the maximum height when the rocket is fired straight up. Assume no wind. In order to get reasonable consistency of answers, use dt = 0.1 second . thrust= [0.0,6.0,14.0,5.3,4.9,4.2,4.2,4.5,4.5,4.6,4.5,4.5,4.5,4.5,4.6,4.6,4.5,4.5,0.0,0.0]; time= [0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0]; Estes Alpha III Length 12.25 inches = 0.311 meters Diameter 0.95 inches = 0.0241 meters Body area 0.785 square inches = 0.506E-3 square meters cross section Cd of body 0.45 dimensionless Fins area 7.69 square inches = 0.00496 square meters total for 3 fins Cd of fins 0.01 dimensionless Weight/mass 1.2 ounce = 0.0340 kilogram without engine Engine 0.85 ounce = 0.0242 kilogram initial engine mass Engine 0.33 ounce = 0.0094 kilogram final engine mass Thrust curve Total impulse 8.82 newton seconds (area under curve) Peak thrust 14.09 newton Average thrust 4.74 newton Burn time 1.86 second Initial conditions: t = 0 time s = 0 height v = 0 velocity a = 0 acceleration F = 0 total force not including gravity m = 0.0340 + 0.0242 mass Basic physics: Fd = Cd*Rho*A*v^2 /2 two equations, body and fins Fd is force of drag in newtons in opposite direction of velocity Cd is coefficient of drag, dimensionless (depends on shape) Rho is density of air, use 1.293 kilograms per meter cubed A is total surface area in square meters v is velocity in meters per second (v^2 is velocity squared) Fg = m*g Fg is force of gravity toward center of Earth m is mass in kilograms g is acceleration due to gravity, 9.80665 meters per second squared Ft = value from thrust curve at this time, you enter this data. Do not copy! This is part of modeling and simulation. start with first non zero thrust. F = Ft - (Fd body + Fd fins + Fg) resolve forces a = F/m a is acceleration we will compute from knowing F, total force in newtons and m is mass in kilograms of body plus engine mass that changes dv = a*dt dv is velocity change in meters per second in time dt a is acceleration in meters per second squared dt is delta time in seconds v = v+dv v is new velocity after the dt time step (v is positive upward, stop when v goes negative) v+ is previous velocity prior to the dt time step dv is velocity change in meters per second in time dt ds = v*dt ds is distance in meters moved in time dt v is velocity in meters per second dt is delta time in seconds s = s+ds s is new position after the dt time step s+ is previous position prior to the dt time step ds is distance in meters moved in time dt m = m -0.0001644*Ft apply each time step t = t + dt time advances print t, s, v, a, m if v < 0 quit, else loop Ft is zero at and beyond 1.9 seconds, rocket speed decreases Published data estimates a height of 1100 feet, 335 meters to 1150 feet, 350 meters. Your height will vary. Your homework is to write a program that prints every 0.1 seconds: the time in seconds height in meters velocity in meters per second acceleration in meters per second squared force in newtons mass in kilograms (just numbers, all on one line) and stop when the maximum height is reached. NUMBER 2: In a MATLAB, write a program that does a least square fit of the thrust data used in NUMBER 1. Use your data x = 0.0 0.1 0.2 ... 1.9 y = 0.0 6.0 14.1 ... 0.0 Be sure time 0.0 has value 0.0, time 1.9 has value 0.0 Do the least square fit with 3, 4, ... , 17 degree polynomials. Compute the maximum error, the average error and RMS error for each fit. If convenient, look at the plots of your fit and compare to the input. Print out your data. Remove excess printout, print: Print out your polynomial order for each degree 3..17 and print out maximum, average and RMS error for each.
Attached
No File uploaded yet.
Tutor Uploads
No File uploaded yet.
Bidders
ExcellentTutor 8 years, 3 months ago
Rated 9.09 earned 174531.76 around 5422 assignments.
Hello, Consider hiring me to do your assignment. I work fast, pay close attention to the instructions, and deliver a plagiarism-free paper. My price is also negotiable to accommodate your budget. Talk to me. Thank you.
$160.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
richwhite 8 years, 3 months ago
Rated 9.35 earned 20716.09 around 553 assignments.
Hello. Kindly consider my bid and rest assured I will deliver the best work; desired high quality. I have reviewed the instructions, and the paper falls under my specialization, and I will do thorough research to ensure it fits all the academic standards. Moreover, I have studied the unit in my course degree and done related papers in previous semesters thus you can expect the most real work from me. My work is always plagiarism free, delivered before the deadline and good graded_96% and above. Once assigned, I always maintain regular communication until you get the desired final result you ordered for. Please review my profile previous clients’ testimonial reviews for proof of my capabilities. Kind regards.
$200.00
  • $200 is way to much
    User_15689 | Jun 18, 2018, 21:17 PM
  • It is not much friend given that the work is complex. How much do you want to pay since 30 is far little
    richwhite | Jun 18, 2018, 21:18 PM
  • Hello. Please name your price and not 30. You know very well this homework is not worthy 30 friend
    richwhite | Jun 18, 2018, 21:21 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
phoniextutor 8 years, 3 months ago
Rated 8.98 earned 50856.21 around 1767 assignments.
Hello. Kindly hire me please, promise to deliver HIGH-QUALITY WORK, PLAGIARISM FREE and 100% GRAMMAR that will guarantee you A+
$150.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Essaymasters 8 years, 3 months ago
Rated 8.94 earned 80799.14 around 2500 assignments.
I will do this Matlab for you and I will give you an A grade.
$200.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
seniorwritersteve 8 years, 3 months ago
Rated 8.6 earned 16849.88 around 514 assignments.
Hello Friend! I would like the opportunity to complete your task. I have read the instructions and I can guarantee the delivery of correct answers within your deadline. I will pay close attention to the instructions to ensure I do not miss a thing. Kindly assign me. Samples are available.
$100.00
  • can i see samples
    User_15689 | Jun 19, 2018, 02:28 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
turtor 8 years, 3 months ago
Rated 5.6 earned 1228.06 around 48 assignments.
Hello friend, I have gone through the instructions and I assure you I can deliver a straight A. Please get in touch today and get served by the best.
$200.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
gudwriter 8 years, 3 months ago
Rated 8.31 earned 5136.36 around 195 assignments.
i can do this
$70.00
  • are you there??
    User_3965 | Jun 19, 2018, 04:16 AM
  • matlab codes is a simple thing for me,kindly hire me for this task and expect it in less than 4 hours from now
    User_3965 | Jun 19, 2018, 04:17 AM
  • matlab codes is a simple thing for me,kindly hire me for this task and expect it in less than 4 hours from now
    User_3965 | Jun 19, 2018, 04:17 AM
  • matlab codes is a simple thing for me,kindly hire me for this task and expect it in less than 4 hours from now
    User_3965 | Jun 19, 2018, 04:17 AM
  • hey when will i get the code?
    User_15689 | Jun 19, 2018, 19:32 PM
  • Hi thanks for assigning the task let me send the code before the deadline that's 20th
    User_3965 | Jun 19, 2018, 19:45 PM
  • yous said you have it done in less than 4hours though, can i get it sooner
    User_15689 | Jun 19, 2018, 21:41 PM
  • are you done with the project yet?
    User_15689 | Jun 20, 2018, 17:41 PM
  • not yet the codes i have am facing small issues but am working on them
    User_3965 | Jun 20, 2018, 18:24 PM
  • today is the deadline
    User_15689 | Jun 20, 2018, 21:12 PM
  • so its past my due date? am i getting my code or no so i can look elsewhere
    User_15689 | Jun 21, 2018, 15:20 PM
  • ????
    User_15689 | Jun 21, 2018, 18:00 PM
  • am sorry the codes i have are not working at all,
    User_3965 | Jun 22, 2018, 16:34 PM
  • perhaps you look for a different tutor,though i tried all my friends who know well the matlab but we were unable
    User_3965 | Jun 22, 2018, 16:35 PM
  • hello bro??did you get help???
    User_3965 | Jun 27, 2018, 01:20 AM
  • No i did not
    User_15689 | Jun 27, 2018, 01:37 AM
  • sorry for this from my end we were also unable to figure it out
    User_3965 | Jun 27, 2018, 01:41 AM
  • so how about this money??do you have any assignment that i can help like maths,algebra,statistics,essays so we can substitute with this $70 here ??
    User_3965 | Jun 27, 2018, 01:42 AM
  • Nope, I’m gonna contact them and get my refund
    User_15689 | Jun 27, 2018, 01:43 AM
  • So you can’t code it at all? Or you just can’t do it in matlab?
    User_15689 | Jun 27, 2018, 01:44 AM
  • okay bro,sorry for this
    User_3965 | Jun 27, 2018, 01:44 AM
  • maybe i can try it today and see if i can get the answers
    User_3965 | Jun 27, 2018, 01:45 AM
  • Yeah sure, maybe you can try with java or C if that’s easier for you
    User_15689 | Jun 27, 2018, 03:19 AM
  • hello there???
    User_3965 | Jul 22, 2018, 05:06 AM
  • dear client,am appealing to you ,kindly release the funds to this assignment as an appreciation of my work,the task is long overdue,i feel you got busy and forgot to release the funds,thanks
    User_3965 | Jul 27, 2018, 23:39 PM
  • dear client,am appealing to you ,kindly release the funds to this assignment as an appreciation of my work,the task is long overdue,i feel you got busy and forgot to release the funds,thanks
    User_3965 | Jul 27, 2018, 23:39 PM
  • dear client,am appealing to you ,kindly release the funds to this assignment as an appreciation of my work,the task is long overdue,i feel you got busy and forgot to release the funds,thanks
    User_3965 | Jul 27, 2018, 23:39 PM
  • why would i do that? you never completed the assignment. so you never did any work. im trying to get my money back from the company
    User_15689 | Jul 28, 2018, 18:16 PM
  • i thought you have an assignment that we can substitute,
    User_3965 | Jul 28, 2018, 18:20 PM
  • i already told you i dont
    User_15689 | Jul 28, 2018, 18:30 PM
  • can i strike a deal with you buddy???
    User_3965 | Jul 30, 2018, 01:03 AM
  • just got into an emergency and am in need of financial support.PLEASE RELEASE THE FUNDS
    User_3965 | Nov 18, 2019, 02:13 AM
  • just got into an emergency and am in need of financial support.PLEASE RELEASE THE FUNDS
    User_3965 | Nov 18, 2019, 02:13 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}