Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i am working on a problem that requires me to plot the motion of a projectile from LAUNCH to GROUND in matlab and i ha

image text in transcribedi am working on a problem that requires me to plot the motion of a projectile from LAUNCH to GROUND in matlab and i ha e to use IF statements to do so but i am not very good at matlab and i keep getting this error associated with my IF statement so please help fix this :))
FILE INSERT SECTION INSERT INLINE MARKUP INSERT BLOCK MARKUP tab Users alyssakritz Desktop Matlab Editor - /Users/alyssakritz/Desktop/Matlab/MAE_HW_4_1.m Class_9.m X MAE_Hw_4_1. mx MAE_Hw_3_1. m x + Matlab Homework 4 - Part 1 6- Initial position and velocity hardcoded in y = ; Vo = 25; 7 - 10 - 11 - * Launch angle in degrees hardcoded in angledeg = 65; anglerad = (angledeg*pi)/180; 13 - ymax = (10^2*(sin(anglerad))^2)/19.62; t_end = (2*VO*sin(anglerad))/9.81; g = -9.81; t = 6:.1:t_end; Ay= g; numangles = length(anglerad); time=length(t); for i = 1 : time if y(i)>=0 nexttime = t(i); xVelocity = V0 * cos(anglerad); yVelocity = VO * sin(anglerad); x(i) = xVelocity .* nexttime; y(i) = y Velocity .* nexttime + (1/2) * Ay .* nexttime.^2 + yo; t_end = y(i); else end end 32 - Plato Command Window Undefined function 'y' for input arguments of type 'double'. Error in MAE Hw 41 (line 23) if y(i)>=0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is cultural tourism and why is it growing?

Answered: 1 week ago