Write a script that creates three variables A horizontal arr

Write a script that creates three variables: A horizontal array named \"babySteps\" that starts at 0, increments by 0.0001 and ends at 1. A string called \"country\" containing the word \"Australia\". A vertical array called \"myArray\" with the following numbers in order 16 2 7 3 8 4 9

Solution

Answer a)

Matlab code to run horizontal array \"babysteps\", starting with 0, increments bt 0.0001 and ends at 1:

babysteps = horzcat(0:0.0001:1)

Answer b)

String \"country\" containing word \"Australia\"

Country = char(\'Australia\')

Answer c) A vertical array \"myArray\" with order 1 6 2 7 3 8 4 9

 Write a script that creates three variables: A horizontal array named \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site