Working with MATLAB arrays. You can check your answers on MATLAB but do not include a...

90.2K

Verified Solution

Question

Mechanical Engineering

Working with MATLAB arrays. You can check your answers on MATLABbut do not include a script file or MATLAB output for this problem. Just write the commands you would use each part. You may not'hard code' which means you cannot just write in the answers. Showthe MATLAB commands You have the following array: Data1[ 3.6 8.92.5 4.6 12.0 3.3 7.8 1.5]

A) Write the command(s) you would use to order the values inthe array Datal in ascending order and store them back inData1.

B) B) Using the same array Data 1, write the command(s) tocopy the 5 lowest values of Datal and save them in an array Data2.Use a command for this. Do not hard code Data2= [1.5 2.5 3.3 3.64.6]

C) Create an array Data3 that cuves each value in Data1 andstore them in Data3

D) Create an array Data4 thag adds 5 to each value in Data1

E) Create an array Data5 that uses the same values in Data1 ina vertical array

Answer & Explanation Solved by verified expert
4.2 Ratings (847 Votes)
Command use A sortData1 Its short the array in ascending order B minkData15 It store 5 minimum element of Array C powerData13 It cube element of Array D plusData15 It add 5 to    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students