(MATLAB Question) I'm trying to create an equation of a line (y=mx+b) based on “x” with slope m=2 and y-intercept 2. (y=2x+2). Then plot the line and turn hold on. This is what I have so far, I know something is wrong, but I am not sure at what part.
Y=mx+b;
Y=2x+2;
m=2;
y-intercept=2;
(plot(x,y))
(plot hold on)
m = 2; % slope
b = 2; % interept
x = linspace(-10, 10, 10); % value range for x, plotting 10 points in range -10 to 10
y = m*x + b; % equantin of line
plot(x,y); % plot the graph for x, y
hold on % hold on the graph

FOR HELP AND MODIFICATION PLEASE COMMENT.
THANK YOU
(MATLAB Question) I'm trying to create an equation of a line (y=mx+b) based on “x” with...
-/8 points | AUFCOLALG8 2.3.044. y = mx + b. Find the equation of the line satisfying the given conditions. Write the equation in the form y-intercept (0,7), slope -6 Need Help? Read It Talk to Tutor
MATlab
I'm trying to create the b matrix with the x and y points. The
h's are delta x's. I keep getting the error matrix dimension must
agree how do i fix this? I would like to not use a loop.
x = [0.9 1.3 1.9 2.1 2.6 3.0 3.9 4.4 4.7];
a = [1.3 1.5 1.85 2.1 2.6 2.7 2.4 2.15 2.05];
h = x(2:end) - x(1:end-1);
b =
(3./h(2:end).*a(3:end)-a(2:end-1))-(3./h(1:end).*a(2:end)-a(1:end-1))
— ао) -(аз — а) — — (а ho...
Y= a X + b is the equation of a straight line. A student plot X vs Y instead of Y vs X, what will be the slope and the intercept on his graph in terms of a and b.
Y = a X + b is the equation of a straight line. A student plot X vs Y instead of Y vs X, what will be the slope and the intercept on his graph in terms of a and b. Given that B + 16R-d/L = S-Q, B is the dependent variable and L is the independent variable, what is the expression for the slope and intercept of the linear graph?
Y=ax+b is the equation if a straight line. A student plot x vs y instead of y vs x, what will be the slope and the intercept on his graph in terms of a and b
6. The equation of a line is given by the function y -mx +b. Determine the value of the X-intercept (where y 0) of the line defined by the equation y 3x+9. Using the equation for a straight line, what is the formula for the x intercept? 7. What effect will a 1.0°C error (all temperature readings are 1.0°C greater than the actual value) in determining absolute 0 K? Justify your answer. 8. What effect will a 0.10 atm error...
Solve for the unknown value in the following equation, y=mx+b, given that the slope and intercept of the line are 16.567 and 0.224, respectively, and that the y value of your ordered pair is 5.2
246 The equation of a line is given by the function y mx + b. Determine the value of the X-intercept (where y 0) of the line defined by the equation y 3x + 9. Using the equation for a straight line, what is the formula for the x intercept? 6. 7. What effect will a 1.0°C error (all temperature readings are 1.0°C greater than the actual value) in determining absolute 0 K? Justify your answer. What effect will a...
state what you would plot to get a straight line if experimental (x,y) data are to be correlated by the following relations, and what the slopes and intercepts would be in terms of the relation parameters. for example: Y^2=ae^(-b/x) plot: y^2 VS 1/x Slope: -b intercept=ln(a) 1- Y^2=mx^3-n 2- 1/ln(y-3)=(1+a.sqrt(x))/b 3- (y+1)^2=[a(x-3)^3]^-1 4- y=e^(a.sqrt(x)+b) 5- xy=10[a(x^2-y^2)+b] I need plot: slope: intercept: for all