Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is an M-file?
Think of what '.m' might represent.
How do you run an M-file named 'myScript.m'?
What do you input in the Command Window?
What is the primary purpose of M-files?
What do you want to avoid in the Command Window?
True or False: Scripts in MATLAB can accept input arguments.
Consider the definitions we've discussed.
Create a MATLAB function that calculates the area of a circle given the radius, and then call that function with a radius of 5.
What formula do you know for the area of a circle?
Write a script to calculate the total cost of items purchased with varying prices. The script should prompt the user for input on the number of each item bought.
Remember how to gather user input in MATLAB.
5 more questions in this section. Enroll free to practise them all.
Enroll free