A little help in understanding a function

function DB = DBInit()
DB.Records = [];
DB.Template = {};
end
what's the diffrence between [] and {}?

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 14 Mai 2013
Modifié(e) : Azzi Abdelmalek le 14 Mai 2013
a=[] % is a 0x0 (empty) double array
a={} % is a 0x0 (empty) cell array

Plus de réponses (0)

Catégories

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by