A little help in understanding a function

1 visualización (últimos 30 días)
googo
googo el 14 de Mayo de 2013
function DB = DBInit()
DB.Records = [];
DB.Template = {};
end
what's the diffrence between [] and {}?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 14 de Mayo de 2013
Editada: Azzi Abdelmalek el 14 de Mayo de 2013
a=[] % is a 0x0 (empty) double array
a={} % is a 0x0 (empty) cell array

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by