A little help in understanding a function

1 次查看(过去 30 天)
function DB = DBInit()
DB.Records = [];
DB.Template = {};
end
what's the diffrence between [] and {}?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-5-14
编辑:Azzi Abdelmalek 2013-5-14
a=[] % is a 0x0 (empty) double array
a={} % is a 0x0 (empty) cell array

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by