Write Octave commands in the script file that you just created to do the following: 1. Create a row vector r1 with six columns, where each of its elements is a 1. 2. Create a row vector r2 with six columns, where each of its elements is a 0. 3. Create a row vector r3 with six columns, where each of its elements is a random integer value between 1 and 9; 4. Create a row vector r4 with six columns, where each of its elements is a digit from your month and year of birth. For example, if you were born in April 2001 then the vector should look like this [0, 4, 2, 0, 0, 1];

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter13: Handling Events
Section: Chapter Questions
Problem 7E
icon
Related questions
Question

Write Octave commands in the script file that you just created to do the following:
1. Create a row vector r1 with six columns, where each of its elements is a 1.
2. Create a row vector r2 with six columns, where each of its elements is a 0.
3. Create a row vector r3 with six columns, where each of its elements is a random integer value between
1 and 9;
4. Create a row vector r4 with six columns, where each of its elements is a digit from your month and year
of birth. For example, if you were born in April 2001 then the vector should look like this [0, 4, 2, 0, 0, 1];

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning