A little help in understanding a function

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

 采纳的回答

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

更多回答(0 个)

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by