MATLAB
Your REPORT
You must process the data as required and present your results in a written document using the IEEE template on the portal*. Your report should follow the IEEE format. There is a dummy version of how your assignment might be put together and two actual IEEE conference papers that you can use as models.
*You will download the template and edit it. Delete the existing text as you write your own text. The template on the portal is a Microsoft Word docx file with track-changes turned on. When you submit your electronic file, it will be checked for the changes and the author.
Your report will be four pages long. You will include a fifth page with all 9 graphs listed below.
You Must Have (in your report):
Your report WILL include a flowchart and a structure chart describing your program.
Your results will include
- Check-sum of the 3 channels of original data. ((3 checksums) (sum of each channel data))
- Mean of each channel for each of the three steps (displacement, velocity, acceleration)
- Mean of the magnitude of the data for each of the three steps.
Your results will include the first three figures listed below and any additional figure of your choice. All the figures will appear in your additional page.
Figures your program must produce.
A figure with 3 sub-plots representing the 3 channels of original data. A figure with a 3D plot of the original data.
A figure with one plot with the magnitude of the original data. (vector length eg (sqrt(x^2+y^2+z^2)
(1st Processing Step eg velocity)(depends on your specific question)
A figure with 3 sub-plots representing the 3 channels of processed data. A figure with a 3D plot of the processed data.
A figure with one plot with the magnitude of the processed data.
(2nd Processing Step eg acceleration)(depends on your specific question) A figure with 3 sub-plots representing the 3 channels of processed data. A figure with a 3D plot of the processed data.
A figure with one plot with the magnitude of the processed data.
Each Graph MUST HAVE the axis labelled with the name and units (if no labels have been given, label the channels 'X', 'Y', 'Z'). The figure must be titled. Graphs need grid lines AND 3D plots need to have a 1:1:1 aspect ratio. (use “help” to understand this)
You must also provide your original matlab code. You must use built-in functions where possible except:
You must write your own function to produce the graphs (eg the graphing code only occurs once in a separate function m-file, not three times in your program.
You must write your own function to do the numeric integration (and/or differentiation) (eg the integration code is in a separate function m-file, not in your main program. These functions must use looping to perform their calculations.
For one type of graph of your choosing, write programming to add a special grid line marking some special value (such as a minimum value or a maximum value or mean value (something of significance)).
You can export your graphs automatically from your matlab code using a command similar to one used in Lab 2. eg: print(‘-dpng’,’q2a.png’);
Exporting your graphs will simplify importing them into your word processor..
Use the above list as a checklist. Make sure you include ALL the required information and outputs.
ASSIGNMENT CODING
The assignment will cover many areas of Matlab coding.
There will be a requirement to:
- load data
- inspect the data
- process the data
- display the data
- save the results
This will involve the following coding:
- for loops
- matrix manipulation
- use of statistical tools
- plotting (2D and 3D)
- use of built in functions
- use of your own functions
NOTE WELL:
In your programming you cannot use built in differentiation or integration functions but must make your own functions and perform the differentiation and / or integration using looping code.
Programming Hints:
To aid you in your programming here are a few summary points.
You will need a function that plots data.
- It will plot a figure with three subplots .
- It will plot a figure that represents a 3D representation of data.
- It will plot a 3D magnitude.
- The figures will all be labelled and titled.
- It will add additional useful information to a figure of your choice.
- It will save the figures to disk so you can import them to your word processor.
- Since your graphing function will be plotting data for three different types of input (displacement, velocity and acceleration) it not only needs to accept input data but also a text message of the data type.
You will need either one or two other functions; written by you, that do integration of a set of data or differentiation of data. If you receive velocity information you will require both functions, if you receive displacement or acceleration data, you will only require one of the two functions (which function depends on your data).
Your main program will call your functions to convert your data to the other two forms of the data and to plot the three figures associated with each of the three forms.
Because of the above, you will create 3 or 4 (or more if you wish) matlab “m” files.
Errors:
If any of your graphs are a straight line or two straight line segments then you have made a mistake. and confused a row for a column or visa-versa. Do not forget to include the check-sum and mean values. Make sure you can tick off every item in the checklist.
Marking:
On the previous page is a check list. For every item you don't supply, you lose marks.
If you don't supply the four page report with sensible text correctly formatted, spell-checked and grammar checked you lose marks.
If you copy code or text from another student you get NO marks.
If you purchase your assignment from the internet, another student or any other source you get NO marks.