Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help coding a matlab program that will plot a motorcycle jump. I understa

ID: 3748768 • Letter: I

Question

I need help coding a matlab program that will plot a motorcycle jump. I understand I need to have the user input angle and velocity and make a function relating them to physics formulas and have the plot show a 15 meter ramp at the beginnning and the end and output the following information

Figure1 Fle Edt Vew Insert Tools Desktop Window Help Motorcycle Stunt Simulation 70 Jump ramp O Motorcycle Landing ramp (Optional) projection 60 40 30 20 10 10 20 40 50 70 x (m) Enter the incline angle of the jump ramp in degrees: 15 Enter the motorcycle jump speed in miles per hour (mph): 72 72.00 mph is 32.19 m/s. Initial velocity in the x-direction: 31.09 m/s Initial velocity in the y-direction: 8.33 m/s The time it takes to reach the maximum height: 0.85 sec The time the motorcycle is supposed to fly above the jump off point: 1.70 sec The horizontal distance the motorcycle can fly: 52.80 m 52.80 m is 173.24 ft. Part 2 Enter the horizontal distance of the obstacles in feet (ft): 192 192.00 feet is 58.52 m The height of the jump ramp is 4.02 m. The stuntman will crash before the landing ramp. Optional) Part 3 The maximum height of the jump is 7.56 mm Flight time is 2.09 sec.

Explanation / Answer

function varargout = guidemo(varargin)
% GUIDEMO M-file for guidemo.fig
% GUIDEMO, by itself, creates a new GUIDEMO or raises the existing
% singleton*.
%
% H = GUIDEMO returns the handle to a new GUIDEMO or the handle to
% the existing singleton*.
%
% GUIDEMO('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GUIDEMO.M with the given input arguments.
%
% GUIDEMO('Property','Value',...) creates a new GUIDEMO or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before guidemo_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to guidemo_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help guidemo

% Last Modified by GUIDE v2.5 09-Apr-2007 16:07:53

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @guidemo_OpeningFcn, ...
'gui_OutputFcn', @guidemo_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin & isstr(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before guidemo is made visible.
function guidemo_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to guidemo (see VARARGIN)

% Choose default command line output for guidemo
handles.output = hObject;

a=ones(256,256);
axes(handles.axes1);
imshow(a);


a=ones(50,150);
axes(handles.axes2);
imshow(a);

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes guidemo wait for user response (see UIRESUME)
% uiwait(handles.figure1);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote