MATLAB is one of the subjects is used for multiple purposes in the field of engineering. Primarily used for electrical engineering, this software can be used for electrical and electronics engineering, mechanical engineering as well as software engineering. It is generally used for technical computing and is a very high-performance software. The software was developed by MathWorks and is the company that generally deals with the license of the software. The software has many upgrades over the years which has made them even better than what it was a few years ago. Since it is a programming software, it tends to be difficult to use as not students are good at programming. This software needs the user to be a bit proficient in programming as well as mathematics to be able to perform any calculations on MATLAB. A few of the basic operations that can be performed in MATLAB are matrix manipulations, plotting of functions and data, implementing algorithms, user interface creation, and also the integration of programs of other languages, etc. This software is a very powerful tool in the hands of a good programmer of MATLAB. Let us know more about MATLAB in the next section.
Like all programming languages, MATLAB uses variables and constants for programming. Also, in MATLAB, programmers tend to use Vectors and Matrices for programming various mathematical models for the work. MATLAB is fairly advanced and it can be used to perform almost all the properties of matrixes such as indexing of matrixes, transposing of matrixes, finding the identity matrix, etc. Like other programming languages, MATLAB can be used to store different data types as it supports structured data types and can be easily manipulated to get the desired results. MATLAB can be used to create a function that can be incorporated in any other programming language. MATLAB can also be used to produce an Object-oriented program which is very useful in daily life programming. One of the specialties of MATLAB is its use in plotting graphs which can be either 2 Dimensional or 3 Dimensional. Programming of the various user interface is also much easier in MATLAB in comparison to other programming languages. With the use of various logic gates, MATLAB can be used to produce various circuit designs and can be tested using MATLAB. Overall MATLAB is one of the best software that can be used in a variety of environments.
My Assignment Help is an online Assignment Help provider which is aimed to help students in completing their assignments on time. Since MATLAB is a multipurpose language it is very difficult for students to produce a robust code in very little time as they have a lot of assignments and projects to complete aside from their studies. Students who are too busy in their other assignments or are unable to complete their MATLAB programming because of the lack of knowledge and functions of MATLAB are generally seen to score fewer marks in their MATLAB assignment and project works which leads to their confidence loss. This not only affects their confidence but also the change to score good marks in their examination which leads to not better employment opportunities.
We at My Assignment not only help students to understand the basic knowledge of MATLAB but also complete their assignments and projects with great efficiency which leads them to score good marks in their examination. Since MATLAB requires the user to be good in mathematics, programming as well as problem-solving techniques, lack of one of these skills can result in a fragile code which is not generally appreciated by the professors. Our experts are the best in the market with plenty of experience on their resume who are ready to help these students to score good marks in their examination. Also, our experts use simple terms that are apricated by the students as they can learn these codes easily and then can master them quickly to do their next assignments with little or no outside help.
We are the best MATLAB assignment Help provider in the world and can reduce the pressure from the students and let them score good marks in their theories as their assignments and projects are overseen by us. To summarize a few of the points which makes us the best in the market are given below:
In this assignment, you will create a larger program in MATLAB using a combination of scripts and functions. The program you need to build is a simplified library in MATLAB. The library will only store books and information about the books. You will need to perform specific actions as you progress through the assignment.
This assignment is broken down into steps where each step is awarded marks towards your final grade.
Read all the steps before designing or writing code.
You need to put some time into thinking about what is/are suitable ways to write your programs. You have the flexibility to use any number of scripts or functions in your assignment based on your design, except where it is specifically mentioned in the question.
You will find Chapter 6 in the course textbook very useful in approaching this assignment. E.g. functions, subfunctions, and debugging. You may also find chapter 7 on string manipulation is useful. Also, you may want to read about cell arrays in chapter 8.
Always think back to lecture 2 where we talked about separating your program into input, algorithm, and output. Think about what each of these should be before writing your code.
Step 1 : Creating a book (2 marks) Write a function that will create a book with a title, author and number of pages. For example: >> create_a_book('MATLAB 101', 'ATTAWAY CALMS', 115) ans = MATLAB 101, ATTAWAY CALMS, 115 The result from the above example creates a string separated by commas (,). You may choose any suitable delimiter. Step 2 : Displaying a book (2 marks) Write a function that will convert one of your books into a nice format and display it on the screen. Each of the attributes, title, author and number of pages should be displayed. For example: >> display_book('MATLAB 101, ATTAWAY CALMS, 115') Title: MATLAB 101 Author: ATTAWAY CALMS Number of Pages: 115 Hint: Using the delimiter in step 1, you know how each attribute is separated. Look for the delimiter to work out the start and end of an attribute. Step 3 : User input (2 marks) Write a program (called library) to repeatedly ask the user what action to perform. Your program should not stop unless the user specifies the quit action. The only available actions at the moment are add book and quit. If the user enters add book, your program must create a new book (using the function from step 1) and display it (using the function from step 2). You will need to prompt the user for the title, author, and the number of pages. In your program, books variable will maintain all the books in the library. If the user enters quit, your program must stop. The program should behave as follows: >> library What would you like to do: add book Title: The Hobbit Author: J. R. R. Tolkien Number of Pages: 454 The following book has been succefully added to the library: Title: The Hobbit Author: J. R. R. Tolkien Number of Pages: 454 What would you like to do: quit Good-Bye Step 4 : Listing books (2 marks) Extend your program with a new action called list books that will list all the books in the library. You need to incorporate appopriate functions that you have already created when exteding the program. You will need to populate your library with some books to test this step. The program should behave as follows: What would you like to do: list books Title: The Hobbit Author: J. R. R. Tolkien Number of Pages: 454 Title: Harry Potter and the Cursed Child Author: J. K. Rowling Number of Pages: 245 Title: The Nest Author: Cynthia D'Aprix Sweeney Number of Pages: 689 Step 5 : Count books (2 marks) Extend your program with a new action called count books that will display how many books are in the library. The program should behave as follows: >> library What would you like to do: count books There are 3 books in the library Step 6 : Find book (2 marks) Write a function that will find a book by the book number in your library system and return the book. The function will have to take two arguments. The first one is the variable that maintains the books in the library. The second variable will be the book number. For example: >> find_book(books,1) ans = The Hobbit, J. R. R. Tolkien, 454 Where The Hobbit is the first book in the library system. Extend your program with a new action called find book that will prompt the user for a book number in the library system and display the book found. Your program should display a message if the book is not found. You need to incorporate appopriate functions that you have already created when exteding the program. The program should behave as follows: >> library What would you like to do: find book Please enter a book number: 2 Title: Harry Potter and the Cursed Child Author: J. K. Rowling Number of Pages: 245 What would you like to do: find book Please enter a book number: 13 The book you are looking for could not be found.
book = struct.empty; count = numel(book); a = input('What would you like to do: ', 's'); while ~strcmp(a,'quit') if strcmp(a,'add book') == 1 count = count + 1; book(count).title = input('Title: ', 's'); book(count).author = input('Author: ', 's'); book(count).pages = input('Number of pages: ', 's'); fprintf('%s, %s, %s has been added to the library \n', ... book(count).title, book(count).author, book(count).pages) elseif strcmp(a,'list books') == 1 disp(book(count)) elseif strcmp(a,'count books') == 1 disp( numel(book)) else disp('Options are ''quit'', ''add book'' , ''list books'', ''count books''.') end a = input('What would you like to do: ', 's'); end disp('Good-Bye')
Our motto is deliver assignment on Time. Our Expert writers deliver quality assignments to the students.
Get reliable and unique assignments by using our 100% plagiarism-free.
Get connected 24*7 with our Live Chat support executives to receive instant solutions for your assignment.
Get Help with all the subjects like: Programming, Accounting, Finance, Engineering, Law and Marketing.
Get premium service at a pocket-friendly rate at AssignmentHippo
I was struggling so hard to complete my marketing assignment on brand development when I decided to finally reach to the experts of this portal. They certainly deliver perfect consistency and the desired format. The content prepared by the experts of this platform was simply amazing. I definitely owe my grades to them.