A little help in understanding a function

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

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 14 Mai 2013
Bearbeitet: Azzi Abdelmalek am 14 Mai 2013

0 Stimmen

a=[] % is a 0x0 (empty) double array
a={} % is a 0x0 (empty) cell array

Weitere Antworten (0)

Kategorien

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by