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

답변 (1개)

the cyclist
the cyclist 2015년 6월 5일

0 개 추천

Have you looked at the documenation for colon?

댓글 수: 3

Anthony Campuzano
Anthony Campuzano 2015년 6월 5일
yes and I have used multiple attempts, but cant seem to get it right
Anthony Campuzano
Anthony Campuzano 2015년 6월 5일
just got it right, small mistake I wasn't noticing
the cyclist
the cyclist 2015년 6월 5일
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2015년 6월 5일

댓글:

2015년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by