Question: Learning Outcome: % Please enter your name inside the single quotes in the next line name = ' ' ; % Last Name, First Name
Learning Outcome: Please enter your name inside the single quotes in the next line
name ; Last Name, First Name
nameInfo isemptyname;
if nameInfo
dispPlease enter your name in Line ;
end;
Define unknowns and integration variables as symbolic variables
syms c s v; Unknowns
syms ; integration variables
nbrSymvar lengthwhos;
Given
a CS;
v;
s; m
s; m
v;
Solve
eqn v diffv s a; Define the equation
vsol dsolveeqn vs v; Solve the equation
Display
dispYou should get: The value of constant c is m;
fprintfThe value of constant c is f mmp@subsupnprimec; Keep the two digit places
fprintf
;
dispYou should get: The value of constant c is e m;
fprintfThe value of constant c is g mmp@subsupnprimec; Keep three significant digits
dispDid you notice the difference between f and g;
Be able to define symbolic variables;
Be able to represent equations; and
Be able to solve for unknowns.
This assignment is to use MATLAB Symbolic Math Toolbox to find the numerical answer of a straightline motion using
the chain rule.
If you have trouble completing this assignment, you may check out previous MATLAB assignments as a reference.
Problem Statement: Gas guns are used to investigate the properties of materials subjected to high velocity impacts. A
projectile is accelerated through the barrel of the gun by gas at high pressure. Assume that the acceleration of the
projectile in is given by where is the position of the projectile in the barrel in meters and is a constant
that depends on the initial gas pressure behind the projectile. The projectile starts from rest at and
accelerates until it reaches the end of the barrle at Determine the value of the constant necessary for the
projectile to leave the barrel with a velocity of
Given:
Find:
Please enter your name inside the single quotes in the next line
name ; Last Name, First Name
nameInfo isemptyname;
if nameInfo
dispPlease enter your name in Line ;
end;
Define unknowns and integration variables as symbolic variables
syms c s v; Unknowns
syms ; integration variables
nbrSymvar lengthwhos;
Given
a cs; ms
v;
s; m
s; m
v; ms
Solve
eqn v diffv s a; Define the equation
vsol dsolveeqn vs v; Solve the equation
Display
dispYou should get: The value of constant c is ms;
fprintfThe value of constant c is f ms
c; Keep the two digit places
fprintf
;
dispYou should get: The value of constant c is e ms;
fprintfThe value of constant c is g ms
c; Keep three significant digits
dispDid you notice the difference between f and g;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
