i need to initialise a matrix but i don't know the dimension of the matrix there is any way to do it ?

 채택된 답변

Walter Roberson
Walter Roberson 2016년 6월 2일

0 개 추천

YourMatrix = [];
That will define the matrix as existing, with size 0 by 0. Sometimes that is good enough to work with. Other times you will need to know the exact size; it depends what your code does with the matrix.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by