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