Memo - Matlab
This is one of my memos about Matlab.
Memos are used for recording the problems I encountered during programming and its solutions. I also write down something that is hard to remember for myself.
Basic
% max of a matrix, matrix to vector first
max(matrix(:))
% float to int
ceil(X); % nearest integer greater than or equal to
floor(X); % nearest integer less than or equal to
round(X); % round to nearest decimal or integer
File
List folder contents
FileInfo = dir('file_name')
% name
% folder
% date
% bytes
% isdir
% datenum
Leave a Comment
Your email address will not be published. Required fields are marked *