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
Consider the function: f(x) = 7 - 28x + 42x 2 - 28x 3 + 7x 4 : Write a script findPolyRoot.m to nd, as accurately as you can, the root of f(x) near x = 2. Your script mu

Write a function rid_multiple_blanks that will receive a string as an input argument. The string contains a sentence that may have multiple blank spaces in between some of the word

hi i have this programm function [IRN,number ] = randnumbers( IRN ) IRN=int32(IRN) ITOTAL=(IRN*330)+100 ITOTAL=int32(ITOTAL); IQUOTIENT=ITOTAL/2303 IQUOTIENT=int32(IQUOTIENT);

Example of Linear indexing: For illustration, the following substitutes the whole second row with values from a vector  The whole row or column could also be changed : >> m



Scripts with Input and output: Placing all this together, we can implement the algorithm from the starting of this section. The following script computes and prints the area o

Mathematical operation: For numerical operands, the use of such operators is clear-cut. For illustration, 3 >> 3 ans = 1 >> 9 ans = 0 Though, in the Wo

1. Assume that there exists a surface that can be modeled with the equation:  z = e-(x 2 + y 2 ).  a) Calculate ∇z at the point (x = 0, y = 0). b) In addition, use MATLAB to

How do you write a programme that asks the user for a number between 1 and 1000 and calculates the sum of its digits?