how to initialize array
조회 수: 597 (최근 30일)
이전 댓글 표시
hi friends how to initialize array in matlab
댓글 수: 2
roxnvols
2020년 8월 31일
For those looking to initalize a 1D array of specific length mxn and value x:
x.*ones(m,n)
Enjoy the non condenscending answer!
답변 (1개)
Guillaume
2015년 3월 19일
편집: Rik
2021년 10월 7일
Going through the very first tutorial in the documentation would have told you that. Or the introduction of any book on matlab.
This is the very basics of matlab.
Since the link above is to the then-newest R2015a release, the link is no longer working as intended. This link should keep working (unless Mathworks decides to move/split the page in a future release).
댓글 수: 2
Walter Roberson
2019년 10월 4일
Alexander Daniels comments:
Did not answer the question, and instead opted to be condescending
Walter Roberson
2019년 10월 4일
Alexander:
The link provided was directly to material that shows the initialization of matrices, and so does answer the question.
There is no requirement in this MATLAB Answers facility that the volunteers answer in their own words or copy copyrighted material: it is acceptable for the volunteers to post links to the desired information -- or, for that matter, even just links to entire groups of discussion of the topic where the solution is "somewhere" in the group.
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!