Tagged: struct

Adding Text Annotations to Graphs

What Are Text Annotations? Text annotations are boxes containing text strings that you compose. The box can have a border and a background, or be invisible. The text can be in any installed text...

MATLAB Commands

Basic Command Syntax A simple MATLAB command computes the result of the expression to the right of the equals sign and assigns the value of the result to the output variable at the left....

arrayfun

arrayfun – Apply function to each element of array Syntax A = arrayfun(fun, S) A = arrayfun(fun, S, T, …) [A, B, …] = arrayfun(fun, S, …) [A, …] = arrayfun(fun, S, …, ‘param1’,...

accumarray

Construct array with accumulation Syntax A = accumarray(subs,val) A = accumarray(subs,val,sz) A = accumarray(subs,val,sz,fun) A = accumarray(subs,val,sz,fun,fillval) A = accumarray(subs,val,sz,fun,fillval,issparse) A = accumarray({subs1, subs2, …}, val, …) Description accumarray groups elements from a data...

save

SAVE Save workspace variables to disk. SAVE FILENAME saves all workspace variables to the binary “MAT-file” named FILENAME.mat. The data may be retrieved with LOAD. If FILENAME has no extension, .mat is assumed. SAVE,...

dir

dir List directory. dir directory_name lists the files in a directory. Pathnames and wildcards may be used.  For example, dir *.m lists all the M-files in the current directory. D = dir(‘directory_name’) returns the...