Tagged: example

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...

abs

Absolute value and complex magnitude Syntax abs(X) Description abs(X) returns an array Y such that each element of Y is the absolute value of the corresponding element of X. If X is complex, abs(X)...

plot

plot Linear plot. plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If...

ver

Matlab Ver Command ver MATLAB, SIMULINK, and TOOLBOX version information. ver displays the current MATLAB and toolbox version numbers. ver(TOOLBOX_DIR) displays the current version information for the toolbox specified by the string TOOLBOX_DIR. For...

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,...

rmpath

rmpath Remove directory from search path. rmpath DIRNAME removes the specified directory from the current matlabpath. rmpath DIR1 DIR2 DIR3 removes all the specified directories from the path. Use the functional form of RMPATH,...

quit

quit Quit MATLAB session. quit terminates MATLAB after running the script FINISH.M, if it exists. The workspace information will not be saved unless FINISH.M calls SAVE. If an error occurs while executing FINISH.M, quitting...