>> x = 0:250:8000;
y = [463.971 618.82 657.451 780.198 882.368 976.775 1009.87 1108
1159.28 1274.69 1303.96 1418.22 1453.05 1502.84 1531.37 1548.24
1594.34 1602.89 1640.93 1646.19 1703.79 1717.28 1717.96 1803.63
1816.41 1857.65 1921.48 1931.91 1957.86 1971.85 2119.59 2165.43
2237.3 2275.2 2326.57 2348.12 2352.78 2371.76 2445.43 2477.01
2534.21 2585.07 2595.41 2599.12 2627.05 2629.26 2645.97 2652.22
2653.06 2653.79 2689.18 2719.77 2835.4 3021.2 3049.33 3138.67
3249.6 3430.6 3515.12 3543.67 3685.67 3745.88 3843.76 4001.71
4236.96 4265.22 4302.9 4308.5 4373.46 4464.62 4471.87 4593.56
4752.17 4767.67 5442.26 6573.33 7368.91];
>> plot(x,y)
Error using plot
Vectors must be the same length.
Why am I getting this error on MatLab? HELP!!
x = 0:(8000/76):8000;
y = [463.971 618.82 657.451 780.198 882.368 976.775 1009.87 1108
1159.28 1274.69 1303.96 1418.22 1453.05 1502.84 1531.37 1548.24
1594.34 1602.89 1640.93 1646.19 1703.79 1717.28 1717.96 1803.63
1816.41 1857.65 1921.48 1931.91 1957.86 1971.85 2119.59 2165.43
2237.3 2275.2 2326.57 2348.12 2352.78 2371.76 2445.43 2477.01
2534.21 2585.07 2595.41 2599.12 2627.05 2629.26 2645.97 2652.22
2653.06 2653.79 2689.18 2719.77 2835.4 3021.2 3049.33 3138.67
3249.6 3430.6 3515.12 3543.67 3685.67 3745.88 3843.76 4001.71
4236.96 4265.22 4302.9 4308.5 4373.46 4464.62 4471.87 4593.56
4752.17 4767.67 5442.26 6573.33 7368.91];
plot(x,y)
>> x = 0:250:8000; y = [463.971 618.82 657.451 780.198 882.368 976.775 1009.87 1108 1159.28 1274.69...
The error for y is .0078, and the error for x is 0.54. I am not sure the error for x is correct. x is 1/T and the error of T is 0.54. I am having a hard time finding the error of the slope of the following equation. I am getting a very large error due to the small value of x and I am not sure why. Can someone please help m =ya-Y Xa - X, = -0.01097-(-1.264)...
///MATLAB/// Consider the differential equation over the interval [0,4] with initial condition y(0)=0. 3. Consider the differential equation n y' = (t3 - t2 -7t - 5)e over the interval [0,4 with initial condition y(0) = 0. (a) Plot the approximate solutions obtained using the methods of Euler, midpoint and the classic fourth order Runge Kutta with n 40 superimposed over the exact solution in the same figure. To plot multiple curves in the same figure, make use of the...
Please solve the Cauchy problem 3y'y''=2y, y(0)=1, y'(0)=1 on the interval (0,2). Plot the graphs of y(x) and y'(x). Please solve this equation using the program MatLab. The answer must be represented as a Word document (.doc). It must be a code. Remember: the task must be done as a program (a code) written in MatLab, not just mathematical calculations.
Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and x2(0) using MATLAB 2. Use MATLAB to find and plot x(0=x:@*.x2(t), where * denotes convolution. 3. Find x(t)=x;()*X2(1) by hand using Laplace transforms. 4. Plot the result of part 3 in MATLAB and compare it to that found in part 2. 2) Given the transfer function shown below, do the following: 1. Find the system's impulse response and plot it using MATLAB 2. Repeat...
I'm not sure where to start since I don't know values for y' or y''. Could someone help me out with number 1? Thanks in advance!!! 1. Solve the boundary value problem y" +2y +y 0 with boundary conditions y(0) 0 and y(1) 1 using the finite difference method. Write a matlab code that will take as input the number of points n and will output y(x). Plot the solution for 4, 10, 14 and 20 points. 2. If the...
Please provide MATLAB code and plot, about system response. Will thumbs up. Thanks. Question 1: MATLAB contains a built-in function called conv which performs the convolution of two vectors: >> help conv conv Convolution and polynomial multiplication. C - conv(A, B) convolves vectors A and B. The resulting vector is length MAX ([LENGTH (A)+LENGTH (B)-1, LENGTH(A),LENGTH (B) 1) If A and B are vectors of polynomial coefficients, convolving them is equivalent to multiplying the two polynomials. Compute the system response...
Please solve it in MATLAB 6) Interpolation and plot: y=x*; x=0:5; a) Interpolate: x1= 1.5; x2=2.5; x3=3.5 b) Plot x and y and label axis. 7)- A= [1,2;3,4); B= [5,6;7,8] Using MATLAB find the following: A+B; A-B; AB, A/B, A-1,B-1, A.B, A./B 8). Using MATLAB: F(x) = y=x+- 2x2 + 3x – 4 a) find the roots of the polynomial f(x) b) find the integral of the polynomial f(x) c) find the SS(x)dx.
Please use MATLAB.Use MATLAB to solve the following problem. 6. Define two vectors (x and y) using coordinates from the figure below. Use plot function to get the same plane frame system like in the figure below. (15 points) (0,10) (10,10) (0,0) (10,0)
y = 0.5*δ(t+9) + 0.25*δ(t+3) + 0.25*δ (t-3) + 0.25*δ(t-9) how to you plot y function in MATLAB? δ is a delta function i tried to use dirac function in MATLAB i am just keep getting errors could you give me a code for the y function in MATLAB? thank you
Please show the code necessary, and explanations on MATLAB. Plotting 11) Plot the function y = sin(x) from x = 0 to 21. 12) Plot the functions y = x2 z = x2 + 2x + 1 from x = 0 to 2 on the same graph. Scripts: Input and Output 13) Write a script (M-file) to read in a message at the command line using the MATLAB input function and then display the message to the Command Window using...