Question: USING MATLAB Task #1: Create three variables: a character array, an integer, and a double. You may name the variables whatever you choose, and they

USING MATLAB

Task #1: Create three variables: a character array, an integer, and a double. You may name the variables whatever you choose, and they may have any value corresponding to their type. The character array should be at least 8 characters in length.

Task #2: Create a new variable called myCharArray and set it equal to the character array variable that you created in Task #1.

Task #3: Create a new variable called myDouble and set it equal to the double variable that you created in Task #1

Task #4: Increment myDouble with decimal value greater than 0.5 but less than 1.0

Task #5: Convert myDouble to a 64 bit integer, and save this value to a new variable.

Task #6: Create the variable myChar which will store the value at the 7th index of myCharArray

Task #7: Create a variable which will store the double ASCII value of myChar

Task #8: At this point you should have created 5 variable which store numbers. Type the whos command into the code section below, and run this script. Confirm that you have created 5 number variables. After this, create the variable product which will store the product (all values multiplied together) of all 5 number variables.

Task #9: Divide product by -1.28 and use the fix function to round it. You can type "help fix" into the code section first, then run the script, to see a print out for what the fix function will do. Create a variable called fixedDiv to store this value.

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!