iA) Option "b" is correct
iiA) Option "d" is correct
iiiA) Option "d" is correct
mathlab 8. (6 points) Choose the correct answer. (0 After executing the following script file in...
please help, this is so urgent, multiple question 14 14. After executing the following script file in MATLAB X1 = [1 0 2; -1 50; 0 3 -9]; Xinvi= inv(x1); Xinvinv= Xinv2*X2 the displayed result is a b. 0.0000 0 0 0.0000 -0.0000 0.0000 -0.0000 -0.0000 0.0000 b. error c. 03 -9 -150 102 d. 1.0000 0.0000 -0.0000 0 1.0000 0.0000 0 -0.0000 1.0000 e. none of above 15. After executing the following script file in MATLAB a =17; while...
Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8 9 10 11; 23 9 16 15 ;11 12 3 6; 1 2 8 9 ) ? = ( 2 21 7 15; 12 4 8 22; 23 9 5 13; 23 4 21 22) ℎ = (4 9 12 15) b. Add suitable lines of codes to the M-file to do the following. Each of the following points should be coded in only...
S.A vector IS givell by [5, 17,-3, 8, 0,-7, 12, 15, 20,-6, 6, 4,-7, 16]. Write a program as a 3 or 5, and, raises to the power of 3 the elements that are script tile that doubles the elements that are positive and are divisible by negative but greater than -5. following values. The value of each element in the first row is the number of the 6. Write a program in a script file that creates an matrix...
Question 1 (8 points): Choose the Correct Answer (2 points for each question) 1. What are the values of the variables x and y after executing the following code? intx=0,y-2; if (x0) y-13 else y-2;) c, x = 1,y=1 d.x-1,y 2 of the following will output Yes only if the integer variable numis either 2.3, 4, or 5? a. if ((2--num) II (nurn<-5)) {cout << "Yes" << endl; } miT b. İfQ2(num) & (num >-5)) {cout << "Yes"くくendl; } c....
a MatLab script called "es15118assnm". The script must be well-commented so the graders can follow and grade your work) Problem Consider two long cylinders of two different types of materials where one cylinder fits inside the other one. The inner radius of the inner cylinder is a and its outer radius is b. The outer cylinder has an inner radius of b and an outer radius of The Young's modulus and Poisson ratio of the inner cylinder are El and...
Problem 4 (7 points): What is the output (printed to command prompt) of the following code (Exam2Prob4.m)? DO NOT USE MATLAB for solving this problem. ZERO CREDIT if all steps are not shown. You should explain the output of each code as if you are executing the code. (answer 2 points; process, with each step - 8 points) Exam2 Prob4.m clc; clear; close all; p=4; q = 3; r5; (x, y] = user Defined (p, q, r); fprintf('x- $d, y=%d',x,y);...
MATLAB Question: Write a script for the problem pictured. Please send the script, not just the printout. Make sure your script allows you to input a value for n so when prompted, in the command window, user types n value. The n value should be the f_k if k ==1 .... Please also send print outs if you can. BELOW IS A SAMPLE ANSWER THAT DID NOT PUT THE INPUT SCRIPT NEEDED FOR THIS QUESTION TO BE CORRECT. YOU CAN...
Choose the correct answer with detailed explanation please . 2- Choose the correct answer (Write down the correct answer letter AND valuc at your answer booklet) a. Let X be a real-valued, continuous random varia ble and let YX. Then, If y 2 0, then the cumulative distribution function E,(v): F,(一./5) _ Fx(,5) (D) -Fx(JF) _ F,(-(y) (E) none of the above pt. If a random variable X has a PDF (x)-2(x-1) 1ss2 (A) 35 (B) 5/3 variance of 75....
L(a) A long (L>> a) cylinder in vacuum has a line charge density p is shown below, (). State the Gauss's law for electric field in words. [1) (i). In order to calculate the electric field inside the cylinder using Gauss's Law, draw an appropriate Gaussian surface in the cylinder. [1] (i). Use the above information or otherwise, show that the electric field in the radial direction Pt inside the cylinder is ,2a (assume that the charge is evenly distributed...
mathlab please copy and paste the code and output Q1. (50 points) Consider the following mathematical sequence for any mumber fathe sequence, the first number is 1 = 0. The remaining terms are computed via the following method. The second number of the sequence is given by 1 /2 f iseve Ty - 3x + 1 if, is add The third number of the sequence is given by 1 /2 fils even 133ry + 1 ifr, is odd Thus, the...