QUESTION 10 What is the Matlab/Octave expression to create a row vector "a" having a series of integers from -2 to 5 with the increment of 1, i.e., -2, -1, ..., 4, 5? QUESTION 11 What is the Matlab/Octave expression to create a matrix "d" having the following series of numbers? d = [0 1; 2 4] QUESTION 12 What is the Matlab/Octave expression to create an 4 by 3 matrix "g" having all the elements of 0? QUESTION 13 What is the final value on the variable z as if you run the following expression in Matlab/Octave? >>x = 2; >>y = 4; >>z = x^y QUESTION 14 What is the Matlab/Octave expression to create an 5 by 5 identify matrix "h"? QUESTION 15 What is the Matlab/Octave expression to create a colum vector "c" having the following series of numbers? c = [-2; 0; 5]
Added by Bego-A K.
Close
Your feedback will help us improve your experience
Adi S and 93 other Calculus 3 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Given matrices A = [9 12 13 0; 10 3 6 15; 2 5 10 3] and B = [1 4 2 11; 9 8 16 7; 12 5 0 3], provide short MATLAB commands to: a) Create a matrix called C which is A and B on top of each other. b) Create a matrix called D made up of the first two rows of A and the last two rows of B. c) Make the 3rd column of C be the numbers from 1 to 6. d) Add 1 to just the odd-index elements of A. e) Create the following matrix (i.e., do not type values, write a single-line MATLAB statement).
Adi S.
The initial value problem y' = dy/dx = x^2 cos(xy), y(1) = 2 is to be solved on the interval x ∈ [1, 3] using the forward Euler method with step h = 0.05 How many steps of the method must be taken to obtain the solution at x = 3? Determine the value of the approximate solution at x = 3. Round correct to the fourth decimal place y(3) = (Hint: By default Matlab rounds the answer to the fourth decimal place). The initial value problem [dx/dt; dy/dt] = [0, 1; -1, -2][x; y], x(0) = 1, y(0) = 2 is to be solved on the interval t ∈ [0, 5] using the backward Euler method with step h = 0.1 The iteration update rule for the method is [x_{n+1}; y_{n+1}] = (I - hA)^{-1} [x_n; y_n], where I is a 2 x 2 identity matrix. Determine the approximate values of x(5) = (round to the fourth decimal place) and y(5) = (round to the fourth decimal place). Now use the Matlab solver ode45 to obtain the solution at t = 5: x(5) = (round to the fourth decimal place) and y(5) = (round to the fourth decimal place).
Sri K.
Create a variable a that is a row vector with the following elements: 9, 1, 3^2, 7/4, 0, 2.25 x 8.5, 0.8, and sin(pi/8). Create a variable b that is a row vector with the following elements: sqrt(5.2^3), 6.71 x 10^3, (3 + 5.1^2)cos 53 deg, 15.8, root(3)(90), and sin(pi/3)/tan 20 deg. Create a variable c that is a column vector with the following elements: 2.1 x 10^-2, sin(1.7pi), 28.5, 2.7^4/3, and e^3. Create a variable d that is a column vector with the following elements: 0.75 x 5.2^0.7, 11.1, root(3)(60), tan(10pi / 11), cos^2 5 deg, and 0.116. Define the variables x = 3.4 and y = 5.8, and then use them to create a row vector (assign it to a variable named e) that has the following elements: x/y, x+y, x^y, x * y, y^2, and x.
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD