A little help in understanding a function

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

 Accepted Answer

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

More Answers (0)

Categories

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!