clc
clear all
close all
format long
x=0:0.01:35*pi;
y=0.35*x.*sin(x);
z=0.7*x.*cos(x);
subplot(2,1,1);
plot(x,y);
title('plot of x and y');
subplot(2,1,2)
polar(x,z)
title('Polar plot of x and z');
figure;
plot3(x,y,z);
xlabel('x');
ylabel('y');
zlabel('z');
title('Plot of x vs y vs z');
Question 1: Given the relationships of x,y and z: For x = 0 to 35: y...
6. (a) Plot four level curves for the surfaces below. Use a meshgrid(-2:0.05:2) i. f(z, y)-9-r2-9y2 for z = 0.5, 1, 2, 3 ii. f(x, y) - for0.4,-0.2,0.2,0.4. (b) Use a meshgrid(-3:0.1:3) and the plot3 command to plot the surface f(, y) Create a figure containing three subplots. Two subplots (for 6a(i), 6a(ii)) across the upper half of the figure and a third subplot that spans the lower half of the figure (for 6b). You may need to refer to...
two functions. The first plot on the left is y = 1 − e(−0.5sqrt(x) and the second plot on the right is y = e(−0.5sqrt(x) . Let x be from 0 to 10 with increment 0.1. The first plot is in blue color, solid line and the second is in red color, dotted line. Turn both grids on. Both figures should have own title and x-axis and “y-axis” labels. Note that you should plot both according to the above instruction....
The joint p.d.f of \(X\) and \(Y\) is given by$$ f(x, y)=\left\{\begin{array}{ll} c(1-y), & 0 \leq x \leq y \leq 1 \\ 0 & \text { otherwise. } \end{array}\right. $$Determine the value of \(c\). Find the marginal density of \(X\) and the marginal density of \(Y\) Find the conditional density of \(X\) given \(Y\). Are \(X\) and \(Y\) independent? Why? Find \(E(X-2 Y)\).
Consider the initial value problem y' +y=e-, with y(0) = 0. PROJECT 1.) Find the exact solution to this equation, say 0(x). 2.) Use MATLAB to plot 6(x) in the interval [0.0, 4.0] . Use sufficient points to obtain a smooth curve. 3.) Now create a MATLAB program that uses Euler's Method to approximate the values of $(2) at N = 10 equally spaced points in (0,4). Plot these points on the same plot that was generated in part 2....
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...
Using the joint probability table below, determine P(X=0 [Y=5). 3 х 10 0.05 0.15 0.05 1 10.15 0.3 0.15 Y 1 0 0.05 0.1 5 7 a. 0.75 b.0.35 C. 0.15 d. 0.03 e. 0.3
Can someone explain this code Support Vector Machines (S array np.array(df1) X array[:,1].reshape(-1, 1) Y array:,0) train J, test X, train,y, test,y train, test split, Y, test,sizese.28) elf : SVR(kernels' rbf', С-10, degree:3, gama:, scale") pred,y clf.fit(train, X, train y).predict(test. X) r r2 score(test.y, pred y) se mean squared,error(test y, pred.y) print("r2 for SVR: ", r) # Plot the graph x-grid : np.arange(mǐn(test_A), max(testX), θ. 1) X.grid a X.grid.reshape (Len(X.grid), 1)) plt.title('SVN for AND') plt.scatter (test X, test.y, colore'black', label...
Write a MATLAB code to solve below 2nd order linear ordinary differential equation by finite difference method: y"-y'-0 in domain (-1, 1) with boundary condition y(x-1)--1 and y(x-1)-1. with boundary condition y an Use 2nd order approximation, i.e. O(dx2), and dx-0.05 to obtain numerical solution. Then plot the numerical solution as scattered markers together wi exp(2)-explx+1) as a continuous curve. Please add legend in your plot th the analytical solution y-1+ Write a MATLAB code to solve below 2nd order...
1. The joint probability density function (pdf) of X and Y is given by fxy(x, y) = A (1 – xey, 0<x<1,0 < y < 0 (a) Find the constant A. (b) Find the marginal pdfs of X and Y. (c) Find E(X) and E(Y). (d) Find E(XY). 2. Let X denote the number of times (1, 2, or 3 times) a certain machine malfunctions on any given day. Let Y denote the number of times (1, 2, or 3...
Please help me with this MATLAB programming problem! Im coding iin MATLAB2018 if that makes any difference! The first picture is the question i need to answer. The picture below is used as reference to answer the question. The last picture (below) is the into to the problem, and is used as reference. 1. Use Matlab to create the following single plot with three subplots. All titles, gridlines, and axis labels should be as shown. Arc System Response 15 E...