Question: draw a flowchart in matlab software using the Commented Matlab code clear; clc; close all; %Taking input the Initial Speed ve=input(Enter intial speed: ); %Taking
draw a flowchart in matlab software using the Commented Matlab code
clear; clc; close all; %Taking input the Initial Speed ve=input("Enter intial speed: "); %Taking input the Launch Angle Theta=input("Enter launch angle:"); g=9.8; T=Time_Of_Flight(ve, Theta,g); H=Maximum_Height_Reached (ve, Theta,b); R=Horizontal_Range(ve, Theta,g); fprintf("Time of flight :Xf ",1); fprintf("Maximum Height Reached :Xf ",H); fprintf("Horizontal Range: %F ", R); %Function to find Time Of Flight function T=Time_of_Flight(ve, Theta,g) T=(2*ve*sin(Theta)}/g; end %Function to find Maximum Height Reached function H=Maximum_Height_Reached (ve, Theta,g) H=((ve*sin(Theta))^2)/(2*9); end %Function to find Horizontal Range function R-Horizontal_Range(ve, Theta, g) R=((ve^2* sin(2*Theta))/8); end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
