Create an m-function that will perform matrix addition

Assignment Help MATLAB Programming
Reference no: EM131679773

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

Reference no: EM131679773

Questions Cloud

Write about symptoms of the problem versus the root causes : What do your findings tell you about symptoms of the problem versus the root causes? Use appropriate academic peer-reviewed literature to support your argument.
Is the width of the confidence interval smaller : Construct a 90% confidence interval for µ assuming n = 16. Is the width of the 90% confidence interval smaller than the width of the 95% confidence interval.
Example of one food that julie : Give an example of one food that Julie could either add or decrease in her diet to better balance her intake of each nutrient.
How many sample selected from a population : Construct a 99% confidence interval for µ assuming n = 47. Is the width of the 99% confidence interval larger than the width of the 95% confidence interval.
Create an m-function that will perform matrix addition : EEL 4935 - 014 Computer Tools Exam. Create an m-function that will perform Matrix addition and Matrix Multiplication.
How travel and immigration policies will have on terrorism : What impacts do you think President Trump's change in travel and immigration policies will have on terrorism
Discuss should the volcanoes be active today : Plate tectonics successfully explains how earthquakes, volcanoes and mountain belts form and how the continents and oceans have evolved with time
Climate change and urbanisation : What extent has the city in your chosen case study 'bounced back' or 'bounced forward' since the disaster - At least three references from the case study tab
How does population produced a sample mean : A sample of 400 observations taken from a population produced a sample mean equal to 92.45 and a standard deviation equal to 12.20.

Reviews

len1679773

10/14/2017 3:30:46 AM

I have an assignment that needs to be submitted in 4 hours, no later than 10 P.M. on the East Coast time. The questions are on the PDF files and the m-files are my attempts so far. Can you please solve the PDF questions by modifying what I already have? Thank you.

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd