As mentioned before, ScalaLab uses its own domain-specific language called ScalaSci. Just think of it as Scala extended with data structures and methods providing some of the functionality of MATLAB. These include vector and matrix objects as well as various useful methods. They work similarly to how they work in the Breeze and Saddle systems we discussed before.
We will briefly overview them here. Covering all the functionality completely would require a separate book. To start using the functionality, you will need to import it. You can do it as shown here:
import scalaSci._
Enter the import
statement into the ScalaLab window. You can execute statements by first selecting them as you would select a block of text in the ScalaLab text editor, and then pressing the F6 button. Alternatively, you can navigate the cursor to the line you want to execute, and then press Ctrl + E (or, depending on your system, a different modifier key + E). Try to do this with the...