What is the best way to figure out the size of a file using MATLAB? The first thought that comes to mind is size(fread(fid))
.
Locate the file or folder whose size you would like to view. Click the file or folder. Press Command + I on your keyboard. A window opens and shows the size of the file or folder.
Direct link to this questionm = size(readImage1);
hi, matlab uses 8 bytes to memorize a number like 1 as double as 2 bytes to memorize it as char?
Please see the dir function as stated above.
Please note that the dir function works on files and not on directories only.
>> s = dir('c:\try.c') s = name: 'try.c' date: '01-Feb-2008 10:45:43' bytes: 20 isdir: 0 datenum: 7.3344e+005
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With