필터 지우기
필터 지우기

Creating a matrix with numbers

조회 수: 2 (최근 30일)
Royvg94
Royvg94 2015년 9월 24일
편집: Stephen23 2015년 9월 24일
I want to create a matrix with numbers, starting with 2000 until 666200 with steps of 1200. I want the matrix to be a n x 1 matrix, so only rows.
How can i do this?

채택된 답변

Jae Song
Jae Song 2015년 9월 24일
m = [2000:1200:666200]';
  댓글 수: 4
Royvg94
Royvg94 2015년 9월 24일
I just put it in wrong order, sorry didnt see, thanks!
Stephen23
Stephen23 2015년 9월 24일
편집: Stephen23 2015년 9월 24일
@Royvg94: Try actually using Jae Song's answer, instead of making up something completely different. Then you will get a vector that fulfills your specifications.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by