Wright State University Lake Campus/2019-1/Matlab

../Python. MATLAB/Cookbook

21:12, 21 February 2019 (UTC)
Goal: combine previous two matlab codes to create a csv file that excel can open. It will contain only numbers. It will look like this:

Generate question as CVS

 * https://bitbucket.org/Guy_vandegrift/qbwiki/src/master/excel/
 * Before we start, does anybody want to develop questions using Python and skip the MatLab stuff?
 * You are encouraged to work together, but you must submit separate reports.
 * Today we will try to submit via Pilot

Goal: Use MatLab to generate about 20 renditions of the calculation for a numerical problem, and print the results in a CSV file that Python can use to create the LaTeX markup that can be processed by the quiz bank. Even though MatLab handles Excel files, Python works better with CSV. Excel can easily read and create CSV files.
 * 1) The csv files will contain only answers and input variables.
 * 2) The names of the input variables will be placed in the top row of the CSV spreadsheet.
 * 3) Input variables will be rounded to three significant figures.
 * 4) Each rendition will consist of one line: Answer in column 1 and question variables in the other columns. Should we place "end" after the last variable to avoid unwanted elements?
 * 5) The top row of column 1 will contain the units.
 * 6) Use a comment in the MatLab file to state the question in words. In the example shown, you might use
 * 7) I will write the Python code that renders this into a LaTex (tex) file for the bank.

Steps:
 * 1) Write a proposal for this project that might attract others to join and/or give us moola. Assume the reader is unaware of the Quizbank project.  Make the proposal between one and two pages long. In your proposal, point out that it is not necessary to use MatLab to prepare such spreadsheets.  Even Excel could do many if not most problems of this nature.
 * 2) Learn to read and write a cvs file with MatLab.
 * 3) Find a way to create random variables that can be exactly expressed using 3 significant figures (we want there to exist an exact answer for each posed problem.)
 * 4) Write a practice problem (like the easy f=ma problem shown above).
 * 5) Write lots of real problems, using odd problems from the textbook.
 * 6) Optinal: Write a MatLab code that creates the LaTeX (tex) file. You need not be familiar with LaTeX because that part is easy to do, even in MatLab.