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];
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];
Chapter13: Handling Events
Section: Chapter Questions
Problem 7E
Related questions
Question
Write Octave commands in the script file that you just created to do the following:
1. Create a row
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning