A little help in understanding a function

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

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 14 May 2013
Edited: Azzi Abdelmalek on 14 May 2013
a=[] % is a 0x0 (empty) double array
a={} % is a 0x0 (empty) cell array

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!