Create a vector representing x coordinates of a measurement, MATLAB Programming

Problem 1. Create a vector representing x coordinates of a measurement with 20 points between 0 and 10. Create another vector y representing fake measurements which are related to the above x values as y = 2.3 x - 1.2. Next add random (normal, Gaussian) noise to the vector y. Plot on the same graph both versions of vector y in different colors. Next use attached linregr.m function to find a least square fit (linear regression) for your fake experimental data.

Problem 2. Create a three dimensional diagram of function z = (x-2)2 + (y-3)3.

Capture the matlab code in a text file.

Posted Date: 3/28/2013 2:29:08 AM | Location : United States







Related Discussions:- Create a vector representing x coordinates of a measurement, Assignment Help, Ask Question on Create a vector representing x coordinates of a measurement, Get Answer, Expert's Help, Create a vector representing x coordinates of a measurement Discussions

Write discussion on Create a vector representing x coordinates of a measurement
Your posts are moderated
Related Questions

Write a Matlab function that computes y1= tan(x) and y2= sin(x)/cos(x), returns the difference |y1-y2| and prints a message whether the two are equal or not. Test your function for

Creating Matrix Variables: Creating a matrix variable is actually just a generalization of creating a row and column vector variables. That is, the values within the row are s

write the program sum of two numbers using matlab code

giv a malab code for offline signature veification and recognition

Finite Difference Method for An Elliptic Partial Differential Equation   Problem  Use the finite difference method and MatLab code to solve the 2D steady-state heat equat

#quest121ion..

Write a MATLAB function called pgm which calculates the periodogram. The function inputs should be the length input vector x and its output should be the length N periodogram estim


how to write the national log (ln(x)) in matlap ?