Julia 101

Lesson 3.2: Manipulating Matrices Using the Colon Operator

Matrix

In Julia, we can use the colon operator to extract elements from a matrix. This feature, which is similar to MATLAB, is very useful during data analysis. Consider the matrix. returned by the statement:

A = [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15]

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
MUHAMMAD SALMAN KABIR

Electrical Engineer | Signal Processing & Machine Learning Enthusiast