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 about the file type used for scripts.
What does a script do in MATLAB?
Consider its functionality in automating tasks.
What extension do M-files have?
Recall the format for saving MATLAB files.
True or False: Scripts can return output arguments.
Think about how scripts work.
Create an M-file script that accepts user input for two numbers and then outputs the sum and product. Describe the steps taken.
Think about how you structure scripts to request input.
Write a function that accepts a matrix input and outputs the determinant. Discuss how you would write it as a script instead.
Consider the limitations of scripts regarding inputs.
4 more questions in this section. Enroll free to practise them all.
Enroll free