MATLAB/Wikiquiz writer (MATLAB)
< MATLAB This page is obsolete. An upgrade of all codes is underway. See Quizbank/How a quiz question joins a quizbank.
This page is dedicated to codes that run wikiquizzes that contain testbanks. If you wish to run write such wikiquizzes, put a comment on my talk page so that we can work together and set learning free by creating enough solved test questions online so that students can teach themselves college physics.
Numeric wikiquizzes
These quizzes have numerical answers that a user will typically select to differ by about 10%. You will want to put the following three files into the same folder, with little or nothing else in that folder. This code runs on both MATLAB and GNU Octave (as of 7 November 2014).
Then modify testeditor.m. See, for example, peQuiz-07:Cart1
The reader should be warned that Octave is currently much less user-friendly than MATLAB. For help, see MATLAB/Octave.
Conceptual wikiquizzes
The current manifestation requires a large number of files to be put into a single MatLab folder:
- Create a separate folder for each Conceptual Wikiquiz name it so that you can identify the quiz by its folder
- Inside that folder create and empty file called OutputFolder Carefully capitalize only the letter "F".
- Also place the following m-files into the folder you just created (NOT the OutputFolder):
- The only files you will edit are main.m (light editing) and inputQuizFile.txt (replacement editing). Write a multiple choice wikiquiz and paste it into inputQuizFile.txt (without the letters a-b-c-d-e). Run main.m to place wikitext files into OutputFolder.