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.

  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