Question

1. (5 pts) Open and edit a script named LO3.m and create the following arrays A [ 2 -3 11 B [2 3 -1] C=[ 12 14 16 18 20 22] D

Can you kindly do the 2 (a, b, c, d, e) 3( a, b) and 4

0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc
clear all
close all
A=[2 -3 1]
B=[2 3 -1]
C=[12:2:22]
D=[0.25:0.5:4.25]
N=[1:0.5:3.5;1.5:-1:-3.5;linspace(-2,-2,6)]
P=[1 -1 pi -3 2 -1;40:-20:-60;-4*pi:2*pi:6*pi];
Q=transpose(P)
disp('Part 2a')
A(2)
disp('Part 2b')
B(3)
disp('Part 2c')
D(3:6)
disp('Part 2D')
P(3,:)
disp('Part 2e')
Q(:,3)
disp('Part 3a')
N(2,:)=0
disp('Part 3b')
P(2:3,5:6)=1
V=[N;A B;C;P(3,:)];
V=[V Q]

MATLAB R2014a EDITOR Find Files Compare ▼ Comment Print New Open Save Breakpoints Run Run and Advance Advance Run and Indent

PLEASE UPVOTE

Add a comment
Know the answer?
Add Answer to:
Can you kindly do the 2 (a, b, c, d, e) 3( a, b) and 4...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. Matrix A = Matrix B = log(A) Write MATLAB expressions to do the following. Evaluate...

    2. Matrix A = Matrix B = log(A) Write MATLAB expressions to do the following. Evaluate the sum of the first row of B Evaluate the maximum value in the vector resulting from element-by-element multiplication of the first column of B with the third column of A. Use element-by-element division to divide the third row of A by the first three elements of the second column of B and evaluate the sum of the elements of the resulting vector.

  • (1 point) Suppose that: -15 A= and B = 3 -2 -4 -1 5 e) The...

    (1 point) Suppose that: -15 A= and B = 3 -2 -4 -1 5 e) The elementary matrix E2.1 subtracts 6 times the first row of B from the second row of B. E2,1 = , Ez1 = f) The elementary matrix E3.1 subtracts -5 times the first row of B from the third row of B. E3.1 = g) The permutation matrix P13 switches the first and third rows of B. P13= ,P3! = h) The elementary matrix E32...

  • Problem 5 Create the following matrix by typing elements explicitly one command. Do not type individual...

    Problem 5 Create the following matrix by typing elements explicitly one command. Do not type individual 0 00 0 0 o o 0 0 0 0 0 1 2 3 F=0 01 10 20 0 0 2 8 26 0 0 3 6 32 E 0 045 6 0 0 7 8 9 Problem 6 Create two row vectors: a -4 10 0.5 1.8 -2.3 7, b [0.7 9 -53-0.6 12 (a) Use the two vectors in a MATLAB command...

  • write it in matlab language Question No 4 6 Marks The surface area and volume of...

    write it in matlab language Question No 4 6 Marks The surface area and volume of the shown ring-shaped mechanical part are calculated respectively as follows: A =rd (2k +d) V = *d? (2R +d) Write a user defined function that computes surface area (A) and volume (V) of this ring from the arguments d and R. Suppose that is constrained to be 15 in, greater than d. Write a script file that uses your function to plot A and...

  • Suppose that: A =[-4 2 -3 3] and B = [-5 -1 5 5 -1 4 -2 -2 -1] Given the following descriptions, determine the following elementary matrices and their inverses. {View Image}

    a. The elementary matrix ?1E1 multiplies the first row of A by 1/6.b. The elementary matrix ?2E2 multiplies the second row of A by -4.c. The elementary matrix ?3E3 switches the first and second rows of A.d. The elementary matrix ?4E4 adds 6 times the first row of A to the second row of A.e. The elementary matrix ?5E5 multiplies the second row of B by 1/3.f. The elementary matrix ?6E6 multiplies the third row of B by -4.g. The elementary matrix ?7E7 switches the first and third rows of B.h. The elementary matrix ?8E8 adds...

  • (1 point) Suppose that: -4 -2 -1 -3 -3 A= 1 and B = -1 -3...

    (1 point) Suppose that: -4 -2 -1 -3 -3 A= 1 and B = -1 -3 -1 -4 4 4 -3 -5 Given the following descriptions, determine the following elementary matrices and their inverses. e. The elementary matrix Es multiplies the second row of B by 1/2 Es = f. The elementary matrix Es multiplies the third row of B by -6. Eg = g. The elementary matrix E, switches the first and third rows of B. ,E,= h. The...

  • How is Problem 1 (a through e) typed up in Matlab? I would like to know...

    How is Problem 1 (a through e) typed up in Matlab? I would like to know how the commands is typed up along with solution please. Assignment 6 Problem 1) Consider the two following matrix, 1 4 2 2 4 100 and B In(A) 7 9 7 3 42 a) Select just the second row of B. b) Evaluate the sum of the second row of B. c) Multiply the second column of B and the first column of A...

  • Given : a = 4, b = 2, c = 6, d = 4 Student's name...

    Given : a = 4, b = 2, c = 6, d = 4 Student's name and ID #: 2. Determine the moment produced by force F about point 0. Express the result as a Cartesian vector. (40 points) P= {(a-b) i + (c+d)j + (b+d) k} kN B D 1.5 m 3m 3 m

  • Suppose that and B 4 -2 4 4 -2 2 Given the following descriptions, determine the...

    Suppose that and B 4 -2 4 4 -2 2 Given the following descriptions, determine the following elementary matrices and their inverses. a) The elementary matrix E subtracts 5 times the first row of A from the second row of A. Ei- b) The elementary matrix E21 subtracts -3 times the first row of A from the second row of A. Ei- c) The permutation matrix P12 switches the first and second rows of A. 12 d) The elementary matrix...

  • 3. (40 pts) A harronic oscillator has normalized energy eigenstates l e,) , n-0, 1, 2,...

    3. (40 pts) A harronic oscillator has normalized energy eigenstates l e,) , n-0, 1, 2, The ladder operators have the properties and The momentum operator is given by |m/s 0)- (%)+2in)-in Suppose the oscillator is initially in the state a) (5 pts) What is the state |W() at later tiriest0 b) (5 pts) Write!ψ(1) as a column vector in the basis {1%), 1%), 19)} (5 pts) Write ()as a row vector in the basi),19) d) (5 pts) Construct the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT