Question: In this homework assignment you will create one script m-file, which will be divided into five sections (one for each problem), and three function m-files

 In this homework assignment you will create one script m-file, whichwill be divided into five sections (one for each problem), and threefunction m-files (one for each of the last three problems). But you

In this homework assignment you will create one script m-file, which will be divided into five sections (one for each problem), and three function m-files (one for each of the last three problems). But you will submit only one file: the .pdf document created when you publish the script m-file. In each of the first three sections of the script m-file vou will have a statement that looks like this: type functionname where functionname is the name of the function m-file called within that section. For example, if in Problem 3 you have a function polar2rect that resides in a function m-file polar2rect.m, the following line should appear in the first section of your script m-file: type polar2rect This statement causes the code in the file polar2rect.m to be printed in the published document. This is important for the following reason. If there is no statement like this in the script m-file that gets published, then the only code that will get published will be the code in the script m-file itself. In this case, the code in your function m-files wi would be no way for your instructor to properly evaluate your work. n your published document. Therefore, there 1. Create two vectors: x = [-0.5, 0.9,-0.8, 0.2,-.021 y = {0.7,-0.2,-0.8, 0.5,-0.6] Together, these two vectors define the (Cartesian) coordinates of 5 points. For example, the location of the first point is defined by the coordinates x (1) and y (1). You are to write code that displays one number for each of the 5 points. This is the scheme: Location of Point Outside the unit circle In 1st quadrant within the unit circuit In 2nd guadrant within the unit circuit In 3rd quadrant within the unit circuit In 4th quadrant within the unit circuit Number 4 Outside the unit circle means that the distance of the point from the origin is greater than 1. Irn the 1s quadrant means that both the x and y coordinates are positive. In the 2nd quadrant means that the x coordinate is negative and the y coordinate is positive. Et cetera Use a for-loop that loops 5 times (for the 5 points). Inside the for-loop, use an ef/elseiflelse structure. Display the resulting sequence of 5 numb

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!