A little help in understanding a function

5 Ansichten (letzte 30 Tage)
googo
googo am 14 Mai 2013
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
a=[] % is a 0x0 (empty) double array
a={} % is a 0x0 (empty) cell array

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

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