Octave assignment 1-Introduction to Octave Introduction This assignment is meant to be a gentle introduction to Octave, the free version of Matlab. It assumes that you have no prior coding experience. Objectives • Download Octave and run it or use https://octave-online.net/ • Learn the basics of the Octave GUI. • Learn how to create a short executable file called an m-file (.m extension) and run it. • Learn what a data type is. • Learn how to declare variables of different data types. • Learn how to create matrices. • Learn how to use several of Octave's functions for creating objects with random numbers. Instructions 1.) Create a file call it with the form exercise_1_first name_last name. Include the underscores in your file name. At the top of the file add the comment "My first Octave assignment. I'm so excited, I just can't hide it." 2.) Create the following variables a = 2.3; • b = -87.3; • A = [1,2; 4,5]; Create a matrix 2 x 2 B using the rand() function. • Create two random complex numbers, call them z, and z2 using the randi() function. Both the real and complex components should be random integers in the interval [-5,5]. Make sure to include the semicolons. Otherwise, the numbers are printed to the screen. For intensive applications, constantly printing to the screen slows the software down. 3.) Add the following lines of code. You should notice the workspace fill up with variables after running your file. I want you to print to the screen for this part. Normally, you wouldn't unless you were looking for mistakes. • a+b • a- b • a+ A - 2 + b • B • 3+ z1 - 4 + z2 Submission You will submit your work electronically through blackboard.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Octave assignment 1-Introduction to Octave
Introduction
This assignment is meant to be a gentle introduction to Octave, the free version of Matlab. It
assumes that you have no prior coding experience.
Objectives
Download Octave and run it or use https://octave-online.net/
Learn the basics of the Octave GUI.
• Learn how to create a short executable file called an m-file (.m extension) and run it.
• Learn what a data type is.
• Learn how to declare variables of different data types.
• Learn how to create matrices.
• Learn how to use several of Octave’s functions for creating objects with random
numbers.
Instructions
1.) Create a file call it with the form exercise_1_first name_last name. Include the
underscores in your file name. At the top of the file add the comment "“My first Octave
assignment. I'm so excited, I just can't hide it."
2.) Create the following variables
a = 2.3;
b = -87.3;
A = [1,2; 4,5];
Create a matrix 2 × 2 B using the rand() function.
Create two random complex numbers, call them z, and z2 using the randi()
function. Both the real and complex components should be random integers in the
interval [-5,5].
Make sure to include the semicolons. Otherwise, the numbers are printed to the screen.
For intensive applications, constantly printing to the screen slows the software down.
3.) Add the following lines of code. You should notice the workspace fill up with variables
after running your file. I want you to print to the screen for this part. Normally, you
wouldn't unless you were looking for mistakes.
• a+b
а — b
a * A – 2 + b * B
• 3 + z1 – 4 * Z2
Submission
You will submit your work electronically through blackboard.
Transcribed Image Text:Octave assignment 1-Introduction to Octave Introduction This assignment is meant to be a gentle introduction to Octave, the free version of Matlab. It assumes that you have no prior coding experience. Objectives Download Octave and run it or use https://octave-online.net/ Learn the basics of the Octave GUI. • Learn how to create a short executable file called an m-file (.m extension) and run it. • Learn what a data type is. • Learn how to declare variables of different data types. • Learn how to create matrices. • Learn how to use several of Octave’s functions for creating objects with random numbers. Instructions 1.) Create a file call it with the form exercise_1_first name_last name. Include the underscores in your file name. At the top of the file add the comment "“My first Octave assignment. I'm so excited, I just can't hide it." 2.) Create the following variables a = 2.3; b = -87.3; A = [1,2; 4,5]; Create a matrix 2 × 2 B using the rand() function. Create two random complex numbers, call them z, and z2 using the randi() function. Both the real and complex components should be random integers in the interval [-5,5]. Make sure to include the semicolons. Otherwise, the numbers are printed to the screen. For intensive applications, constantly printing to the screen slows the software down. 3.) Add the following lines of code. You should notice the workspace fill up with variables after running your file. I want you to print to the screen for this part. Normally, you wouldn't unless you were looking for mistakes. • a+b а — b a * A – 2 + b * B • 3 + z1 – 4 * Z2 Submission You will submit your work electronically through blackboard.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Study of Characters
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education