How to create an infinite matrix?

23 visualizzazioni (ultimi 30 giorni)
I am having trubles of how to approach this " building an infinit matrix " with the final form of the matrix as:
A=[a0 a1 a2 a3 a4 ......]. the number after the letter is just an index.
and thank you

Risposta accettata

Walter Roberson
Walter Roberson il 15 Feb 2020
You cannot. The maximum array size in MATLAB is 2^48 - 1.
  2 Commenti
Walter Roberson
Walter Roberson il 15 Feb 2020
If you are working symbolically then
syms('a', [1,N])
When N is a definite nonnegative integer, creates a vector of symbols a1 a2 and so on. You could syms('a0') separately and add it at the beginning.
Sultan Aljohani
Sultan Aljohani il 15 Feb 2020
It works. Thanks all

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Operators and Elementary Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by