Write a function in matlab

Assignment Help MATLAB Programming
Reference no: EM131807

You will write a function

QR = my_gs_qr(A,type);

The function my_gs_qr should take as inputs an m × n real matrix A, with m ≥ n, a number type, whith type equal to 1 or 0, and a number precision, where precision is an integer between 0 and 9, inclusive. The function should return an m × n matrix Q, and the upper triangular n × n matrix R, computed with simulated ?oating point arithmetic with precision base ten bits (and matlabs internal full precision arithmetic if precision= 0). If type is 1, the code should use modi?ed Gram-Schmidt, and if type is 0, the code should use classical Gram-Schmidt. All arithmetic operations used in all the computations should be implemented using simulated precision.

Reference no: EM131807

Questions Cloud

Optimize human resources to meet organizational objectives : Optimize human resources to meet organizational objectives
Create child processes : Create child processes
Write an assembly language program : Write an assembly language program for encrypting alphabates of a string
Applying activity based costing : Applying Activity Based Costing
Write a function in matlab : write a function in MATLAB
Case - neterama pty ltd : Explain how an effective supplier relationship strategy should be developed
Year forecast of estimated future cash flows : Year forecast of estimated future cash flows
Evaluate the cost of materials : Evaluate the cost of materials
National health reform : Explain the role of the following three 'bodies' in National Health Reform

Reviews

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.

  Make a program that will graph the parabolas

Make a program that will graph the parabolas each parabola a different color and put all the parabolas in the same figure or graph

  Filtering – biomedical application

Prepare a filter that removes noise produced by electronic medical equipment.

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

  Write a functions

The function range basis takes a matrix A as input, and outputs a basis (again written as columns) for the range space of A.

  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.

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  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

  Create a vector in matlab

Create a three dimensional diagram of function.

  Develop a simulation program

Develop a simulation program

  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.

  Least squares

For homework consider the points (0,0), (1,2), (2,3), (3,9), ( 4,17), (5,24), (6,37). (1) Use Matlab to find the least squares best fit with a line.  Turn in A, y and c and a plot like the one above.  Also (2) use Matlab to find the least square best..

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