Question: Write a script as a wer-defined function with the function name of KE_cal, which enables to calculate the kinetic energy, KE, by receiving the two

 Write a script as a wer-defined function with the function name

Write a script as a wer-defined function with the function name of "KE_cal", which enables to calculate the kinetic energy, KE, by receiving the two inputs uncha mass, mand velocity. V. Kinetic energy can be calculated as KE - 1/2 mV NOTE: you need to save this script as "KE_cal.an in the current working directory to be recognized as an executable function by Octave (or Matlab). Fill in the blanks given template to successfully develop a user defined function KE calm below. Lunction - _calm, v $output)t kinetiennegy. Inputin mas. loput (V) velocity.ws To calculate kinetic energy of mass 2 kg and velocity = 1 m/s by calling the user-defined function "Ecal", you can use this function by typing in the comme windows >KEKE 2.1) 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!