Question: Complete the coding portions in a MATLAB script file, please clearly indicate with comments which parts belong to each question. 1. Indicate whether the following
Complete the coding portions in a MATLAB script file, please clearly indicate with comments which parts belong to each question. 1. Indicate whether the following variable names are valid in MATLAB; if invalid indicate why. (10 points) a. 4Ever ANSWER: b. TodaysDate ANSWER: c. X-and-y ANSWER: d. D4_E ANSWER: e. I got_an_A ANSWER: 2. Write a line of MATLAB code to perform each of the following calculations (10 points) e. 1+2-3*4/ 3. The formula for converting the temperature from Fahrenheit to Celsius is as follows: Write MATLAB code to prompt the user to enter the temperature in Fahrenheit. Then, your code should display the temperature in Celsius. (5 points) 4. Write MATLAB code to (10 points) a. Set a variable a equal to 5+7i b. Display the real part of a c. Set a variable b equal to a random number between 1 and 100 d. Check if 50 is greater or equal to b e. Check if bis prime 5. The equation of a straight line can be expressed as where m is the slope and b is the intercept. Write MATLAB code to prompt the user to enter values for me and b. Then plot y over the range r=-25 to 25 (10 point)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
