In the code below I am expecting the file size to be 4096 bytes (4kb) right? But in practice the file size becomes 1024 bytes (1kb)! I don't understand why?
fid = fopen('test.test', 'w', 'b');
buff= zeros(1024,1,'int32');
fwrite(fid,buff);
fclose(fid);