Question

MATLAB QUESTIONS [1pts] Create the following vectors (prob01a, b): A = 10 thru 1 B =...

MATLAB QUESTIONS

  1. [1pts] Create the following vectors (prob01a, b):

    1. A = 10 thru 1

    2. B = 1 thru 4.2 with ten equally spaced elements

  1. [3pts] Perform the following operations on the vectors A and B element by element (prob02a, b, c)

    1. multiply B and A

    2. divide B by A

    3. AB + BA

  1. [3pts] Create a matrix E, using A and B vectors as row 1 and row 2 respectively (prob03a, b, c)

    1. find the size of E

    2. find the length of E

    3. find the single value minimum of E


  1. [4pts] Find the indices (row and col) within E where (prob04a, b, c, d)

    1. E = 5

    2. E > 4

    3. E < 1.9

    4. E > 1 and E < 2

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

For the above prolem, we need to have the following things into consideration.

  1. We need to create the vectors of the specifies length and increments
  2. Then we need to do the operations as specified in the problem.

Following is the code for the same.

% Defining the A from 10 to 1 
a = 10:-1:1;
% Making B from 1 to 4.2 with the increment such that it makes 10 elements
b = 1:3.2/9:4.2;
% Doing the operations element by element
disp(b.*a)
disp(b./a)
disp(a.*b + b.*a)

Following is the snippet of the code.

Following is the output snippet.

Add a comment
Know the answer?
Add Answer to:
MATLAB QUESTIONS [1pts] Create the following vectors (prob01a, b): A = 10 thru 1 B =...
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
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