matrix arithmetic numbers short way

조회 수: 3(최근 30일)
Grkn12
Grkn12 2021년 1월 1일
댓글: Grkn12 2021년 1월 1일
Hi,
is there any short way to define a matrix that contains arithmetic number , for instance A = [ 1 2 3 4 5 6 ..... 30 ] can I write this matrix in a different and short form instead of writing all these numbers ?

답변(1개)

Ameer Hamza
Ameer Hamza 2021년 1월 1일
Yes, quite easily.
A = 1:30;
  댓글 수: 1
Grkn12
Grkn12 2021년 1월 1일
thanks..,

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

범주

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by