Question: Matlab 2. Write a for loop that will print the elements from variable sentence Tormat, regardless of the length of the vector. For example, if

 Matlab 2. Write a for loop that will print the elements

Matlab

2. Write a for loop that will print the elements from variable sentence Tormat, regardless of the length of the vector. For example, if this is the vector ss vec [5.5 11 3.45] This would be the result: Element 1 is 5.50 Element 2 is 11.00 Element 3 is 3.45 3. Write a script called protemps that will prompt the user for a maximum Celsius value in the range from -16 to 20; error-check to make sure It is in that range. Then print a table showing degrees Fahrenheit and degrees Celsius until this maximum is reached. The first value that exceeds the value should not be printed. The table should start at 0 degrees Fahrenheit, and increment by 5 degrees Fahrenheit until the max (in Celsius) is reached. Both temperatures should be printed with a field width of 6 and one decimal place. The formula is C 5/9(F-32). 4. Write a script mathcomputations that produces the following output. The script should iterate from 1 to 9 to produce the expressions on the left, perform the specified operations to the result shown on the right and print exactly in the format shown here. 12 x 8+2=98 123 x 8+3 987 1234 x 8+4 9876 12345 x 8+5 98765 123456 x 8+6987654 1234567 x 8+7 9876543 12345678 x 8+8 98765432 123456789 x 8+9 987654321

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!