# Tutor profile: Patrick M.

## Questions

### Subject: MATLAB

What is a way in which the program could be set up to ask the user which .txt files they would like to import?

The uigetfile command is one way. Type "help uigetfile" into the command line to find out more about how it is used. An example that would allow multiple files to be imported could look like this: [filename, pathname] = uigetfile({'*.txt''},'Select the Files to Import','MultiSelect','on'); The followup line: filename = cellstr(filename)'; will convert the variable containing the file names into a cell that can be numbered and thus easily walked through with a for loop.

### Subject: Trigonometry

What is an easy way to remember which sides and angles of a triangle correspond to the common trig functions, sin, cos and tan?

The phrase soh-cah-toa reminds you that the Sin refers to the Opposite over the Hypotenuse, Cos the Adjacent over the Hypotenuse and the Tan refers to the Opposite over the Adjacent side.

### Subject: Calculus

Integrate the equation 6x^2 with respect to x.

The indefinite integral is 2x^3 + c where c is a constant.

## Contact tutor

needs and Patrick will reply soon.