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

 Réponse acceptée

Walter Roberson
Walter Roberson le 2 Juin 2016

0 votes

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.

Plus de réponses (0)

Catégories

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by