Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

Computer Tools Exam

Q1. Create a script that will plot sin(3*t) and cos(3*t) for the 0 ≤ t ≤ 360 if the amplitude is more than 0.5 or less than -0.5.

Here are the required conditions.

(1) It should be in degrees not radians (You can use sine or cosine function for degrees or you can use the conversion formula between radians and degree (degree = radians X 180/pi)

(2) Any value of sin(3*t) and cos(3*t) between [-0.5, 0.5] should be replaced by zero.

(3) The graphs should have Titles, labels on x-axis and on y-axis. Also grid should be on.

(4) For the range of x-axis use 0 and 360. For the range of y-axis use -1.5 and 1.5.

(5) Use subplot to display two graphs in one plot.

In other words, create the following picture.

900_figure.png

Q2. Create an m-function that will perform Matrix addition and Matrix Multiplication.

Here are the required conditions.

(1) Use 4 numbers as arguments. First and second numbers will become row and column number of the first Matrix. The third and fourth numbers will become row and column numbers of the second Matrix.

(2) If the dimension of the first Matrix is not equal to the dimension of the second Matrix, the computer WILL NOT perform the addition.

(3) ALSO, If the column number of the first Matrix is not equal to the row number of the second Matrix, the computer WILLNOT perform the multiplication.

(4) Once the dimension conditions are cleared, the user should be prompted to type in individual entries of the two Matrices.

Q3. (New) Create a script for the following problem.

An engineer had measured impedances of a collection of electrical components and created a text file - impedance.txt - based on the numerical data. You will find that impedance.txt on Canvas. The first Row of the file is MAGNITUDE of the impedance and the second Row is the PHASE (in  radian), of the impedance. Column number indicates the number of components.

Here are the needed conditions.

(1) Will read the impedance.txt and find the Column number (You can use 'size' function)

(2) Compute real part and imaginary part of impedance of individual component.

(3) Save the result on a variable Impedance_Catesian.

(4) Save the result on a text file Impedance_Cartesian.txt

(5) Also have this following messago displayed on the screen ("There are ### components in the file impedance.txt. The Conversion of POLAR format of complex number into CARTESIAN format is completed and the result is saved on Impedance_Cartesian.txt")

(6) Do this with FOR LOOP OR WHILE LOOP (Only a single script is needed!)

Attachment:- Assignment Files.rar

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M92488473

Have any Question?


Related Questions in MATLAB

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As