A little help in understanding a function

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 日

0 投票

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