ENGG100 - Engineering Computing and Analysis - Output Matrix Data - Meshgrid Function - Engineering Assessment Answer

Download Solution Order New Solution
Assessment Task:
ENGG100 - Engineering Computing and Analysis Assessment Answer

PART 1 – Output matrix data to spreadsheet/text files using built-in functions

Create a table in a numeric 2D array of size 12x12 where each location in the array represents how many of its indices are even. This means each value in the array can only be 0, 1, or 2. The entry in (5,11) will be 0, the entry in (2,7) will be 1 and the entry in (12,10) will be 2. Show how to create the matrix using two methods:

1) use nested for loops to traverse through the rows and columns one-by-one; and

2) use the meshgrid function to generate row & column template matrices (similar to the approach used when plotting a function in 3D). For this approach, you may want to see what happens when you apply the modulus-2 function (using mod) to your row and template matrices

Using the xlswrite function, export the data from either matrix, to an excel spreadsheet (.XLSX). Also use the csvwrite function to export to a Comma Separated Variable file (.CSV) and the dlmwrite function to export to a text file (.TXT) using the dollar-sign delimiter ($), instead of a comma.

Open both the .XLSX and .CSV files in Excel to ensure that they were created successfully. Also open the .CSV and .TXT files in a simple editor (such as Notepad or Wordpad) so you can see the structure of the text files. Now, read only the .TXT file back into a different matrix variable in MATLAB using dlmread.

PART 2 – Read in values from a real data source using the Import Tool

PART 3 – Output matrix data to text files using low-level File I/O

PART 4 – Create a hierarchy of folders and files

PART 5 – BONUS Problem

For this part, you are going to write a program that reads in from a text file, performs some string/text processing and outputs to a second file. The input file is available on Moodle, and the output file can be named as you wish.

The processing required is as follows:

1) All words with greater than 2 letters are to have their letters rotated to the right by 2. This means that hello becomes lohel. Spaces should be used to distinguish when one word starts and another finish. Words with 2 letters have their letters reversed. Single-letter words remain untouched.

2) All punctuation, numbers or non-letter characters must stay in the same original locations – only the letters are rotated. For example, hello? becomes lohel? If the punctuation is in the middle of the word, letters rotate around it: eg. that’s becoming tsth’a.

3) Regardless of initial capitalisation, all words are to have every second letter capitalised (after rotating).
4) All other punctuation, numbers or non-letter characters remain untouched.
5) All other formattings (single/double line spacing/etc) remains the same throughout the file

 

This ENGG100: Engineering Assessment has been solved by our Engineering Assessment Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.