using the colon operator

4 Ansichten (letzte 30 Tage)
Anthony Campuzano
Anthony Campuzano am 5 Jun. 2015
Kommentiert: the cyclist am 5 Jun. 2015
Create a matrix x that contains the following
row 1:the first 50 even numbers, starting from 0
row 2:the first 50 odd numbers, starting from 1
Use the colon operator to score the most efficient solution

Antworten (1)

the cyclist
the cyclist am 5 Jun. 2015
Have you looked at the documenation for colon?
  3 Kommentare
Anthony Campuzano
Anthony Campuzano am 5 Jun. 2015
just got it right, small mistake I wasn't noticing
the cyclist
the cyclist am 5 Jun. 2015
Glad to hear you got it to work. Next time, I suggest you post what you attempted. Otherwise, all we see is you trying to get us to do your homework for you.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by