Question: Please help me answer this. will rate :) THIS IS FOR MATLAB, needing help with my script 1. Create a script that does the following:
Please help me answer this. will rate :) THIS IS FOR MATLAB, needing help with my script
1. Create a script that does the following: A. Assign the value 2 to a variable named base and the value 30 to the variable exp. Use a semi-colon to suppress the command window output. B. Write a statement that raises the first variable to the power of the second variable and assigns the result to a variable named result. Use a semi-colon to suppress the command window output. C. Place your name in a variable called my name and the date in a variable called todays_date. Both variables should be string variables, so you must use quotation marks. D. Use the fprintf() command to print messages to the command window with the results. One message should give your name and the date. The second message should give the results of your calculation. Do NOT type values into the fprintf() statement; your fprintf() statement should use formatting operators and variables such as the examples found on the MATLAB documentation page for fprintf()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
