sol01 - Contents Homework Solutions - Week 1 Problem 2.7...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Contents Homework Solutions - Week 1 Problem 2.7 Problem 2.9 Problem 2.16 Stopping distances Matched load function sol01 % You may use the file sol01.m as a template on how to structure your % homework reports. It closely emulates what you would do if you were using % separate M-files for each problem, but collects everything into a single % file. The basic objective is to upload a file that contains everything, % that is, code + screen output + graphs, all in a single file. % % step 1: Use the Matlab editor and put all the Matlab commands that solve % your homework questions into a single script M-file, named % anything with an extension .m, for example, % % sol01.m % % step 2: Run the M-file in Matlab to make sure it works: % % >> sol01 % % Step 3: Run the command "publish" to create the HTML file: % % >> publish('sol01', 'html'); % % publish should not be part of the M-file - it should be run from the command window % % Step 4: The Matlab-generated HTML file and supporting PNG graph files will % have been copied into a sub-folder called 'html'. At this point % you have the following choices: % % a) upload to sakai the HTML file + PNG files % % b) open the HTML file in your browser and copy-paste the displayed % screen pages into Word including the graphs. %
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
% c) create an MHT file, make sure graphs are included, and upload to sakai % % ------------------------------------------------------------------------------ % The general structure of the homework subfuction is illustrated below: % ------------------------------------------------------------------------------ % % function sol01 % primary homework function % % problem_1
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

sol01 - Contents Homework Solutions - Week 1 Problem 2.7...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online