Documentation about multi-line array (matrix) definition?

조회 수: 12 (최근 30일)
Taejun Jang
Taejun Jang 2019년 5월 15일
댓글: madhan ravi 2019년 5월 20일
I found that I can use multi-line matrix literals. That is,
A = [1 2; 3 4; 5 6] % This is the common form we use. In a single line.
is the same as
A = [1 2
3 4
5 6] % Using multiple lines
This also applies to cell arrays.
However, I cannot find any documents about this.
Matrix tutorial https://www.mathworks.com/help/matlab/learn_matlab/matrices-and-arrays.html does not say about ths multi-line array creation.
Is there any documentation about this? Is this usable to all previous versions?

채택된 답변

madhan ravi
madhan ravi 2019년 5월 15일
  댓글 수: 8
Taejun Jang
Taejun Jang 2019년 5월 20일
As a note, I contacted the technical support, and they replied as follows:
  • ... We have confirmed that this behavior is indeed undocumented. On that note, I will be creating an enhancement request to our documentation team and they may implement it for one of our future updates based upon internal discussions. ...
  • ... this undocumented feature is stable and there are no plans as of now to remove it in our future releases. ...
madhan ravi
madhan ravi 2019년 5월 20일
Thank you for following.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by