How to create an infinite matrix?

24 visualizaciones (últimos 30 días)
Sultan Aljohani
Sultan Aljohani el 15 de Feb. de 2020
Comentada: Sultan Aljohani el 15 de Feb. de 2020
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Feb. de 2020
You cannot. The maximum array size in MATLAB is 2^48 - 1.
  2 comentarios
Walter Roberson
Walter Roberson el 15 de Feb. de 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 el 15 de Feb. de 2020
It works. Thanks all

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Operators and Elementary Operations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by