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

  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

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  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.

  Design and fir filter in matlab

What does the pole-zero diagram tells you about the filter

  Filtering – biomedical application

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

  Calculate the distance between cities

Calculate the distance between cities

  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.

  Linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM.

  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..

  Write project report and provide cross-synthesis

Write project report and provide Cross-synthesis.

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