Question

4. Create a variable N that is a column vector with seven equally spaced elements in which the first element is 44 and the la

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

please give thumbs up, thanks

code:

%4
%creating 7 equispaced elements from 44 to 23
N=(44:-(44-23)/6:23)'

%5
a=[ 5 8 -1 0 2]
b=[4 1 9 -2 3]
c=[-3 5 0 6 1]
RowMatrix=[a;b;c]
ColMatrix=[c' b' a']

Add a comment
Know the answer?
Add Answer to:
4. Create a variable N that is a column vector with seven equally spaced elements in...
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
  • 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...

  • 47. For a matrix A(:, m:n) refers to _ a. Refers to the elements in all...

    47. For a matrix A(:, m:n) refers to _ a. Refers to the elements in all the rows of column n of the matrix A. b. Refers to the elements in all the rows between columns m and n of the matrix A. c. Refers to the elements in all the columns between rows m and n of the matrix A. d. Refers to the elements in all the columns of row n of the matrix A. 48. What does...

  • using matlab Create the following matrix B. [18 17 16 15 14 13] 12 11 10...

    using matlab Create the following matrix B. [18 17 16 15 14 13] 12 11 10 9 8 7 6 5 4 3 2 1 Use the matrix B to: (a) Create a six-element column vector named va that contains the elements of the second and fifth columns of B. (6) Create a seven-element column vector named vb that contains elements 3 through 6 of the third row of B and the elements of the second column of B. Create...

  • Please give me the R code for the following questions. Create a variable named x1 which...

    Please give me the R code for the following questions. Create a variable named x1 which contains five equally spaced numbers. You may NOT use the c() function to do this. Find the mean of all elements of x1 except the second. Create a list My.List where the first list element is a two-column data frame containing x1 and the vector [2, 1, 4, 7, 8], and the second list element is the logical vector [T, F, NA, T, F]....

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

    MATLAB QUESTIONS [1pts] Create the following vectors (prob01a, b): A = 10 thru 1 B = 1 thru 4.2 with ten equally spaced elements [3pts] Perform the following operations on the vectors A and B element by element (prob02a, b, c) multiply B and A divide B by A AB + BA [3pts] Create a matrix E, using A and B vectors as row 1 and row 2 respectively (prob03a, b, c) find the size of E find the length...

  • Theory: A vector with nonnegative entries is called a probability vector if the sum of its entries is 1. A square matrix...

    Theory: A vector with nonnegative entries is called a probability vector if the sum of its entries is 1. A square matrix is called right stochastic matrix if its rows are probability vectors; a square matrix is called a left stochastic matrix if its columns are probability vectors; and a square matrix is called a doubly stochastic matrix if both the rows and the columns are probability vectors. **Write a MATLAB function function [S1,S2,P]=stochastic(A) which accepts a square matrix A...

  • Q1. Using your class notes write 1-2 paragraphs about your learning in first four (three hours cl...

    please explain the following in detail.. Q1. Using your class notes write 1-2 paragraphs about your learning in first four (three hours class counts as 2 classes) classes of this course. Explain how your learning can be related to your previous knowledge? Also how you expect to use it in future (maybe in relevance to any project that you want to do in future)? This is just to make you realize the relevance of your learning to practical applications We...

  • MATLAB Create a row vector vC=2:3:38 that has 13 elements. Then, create the following new vectors...

    MATLAB Create a row vector vC=2:3:38 that has 13 elements. Then, create the following new vectors by assigning elements of vC to the new vectors: (a) A vector (name it vCodd) that contains all the elements with odd index of vC; i.e., vCodd = 2 8 14 ... 38. (b) A vector (name it vCeven) that contains all the elements with even index of vC; i.e., vCeven = 5 11 17 ... 35. In both parts use vectors of odd...

  • 4. Consider the matrix [1 0 01 A- 1 0 2-1and the vector b2 (a) Construct...

    4. Consider the matrix [1 0 01 A- 1 0 2-1and the vector b2 (a) Construct the augmented matrix [Alb] and use elementary row operations to trans- form it to reduced row echelon form. (b) Find a basis for the column space of A. (c) Express the vectors v4 and vs, which are column vectors of column 4 and 5 of A, as linear combinations of the vectors in the basis found in (b) (d) Find a basis for the...

  • Introduction to Engineering I Spring 2019 MATLAB Homework Assignment 1 a) Create a matrix called ...

    help wanted? Introduction to Engineering I Spring 2019 MATLAB Homework Assignment 1 a) Create a matrix called d from the third column of matrix a. (Hint, typing d 22: 5: 821 b) Combine matrix b and matrix d to create matrix e, a two-dimensional matrix with three rows c) Combine matrix b and matrix d to create matrix f, a one-dimensional matrix with six rows and d) Create matrix g from matrix a and the first three element of matrix...

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