from
Display lots of variable infor
by WurmD
displays size, min, max, type, std, mean and med of H
|
| info(H)
|
function info(H)
% function info(H)
%
% displays size, min, max, type, std, mean and med of H
display(['size ' int2str(size(H))])
try
% display(['min-max ' num2str(min(H(:))) '-' num2str(max(H(:)))])
display(['min-max [' num2str(min(H(:))) ' ' num2str(max(H(:))) ']'])
catch me
display(['min-max ' me.message])
end
s=whos('H');
display(['type ' s.class]),
try
display(['std ' num2str(std(H(:)))])
catch me
display(['std ' me.message])
end
try
display(['mean ' num2str(mean(H(:)))])
catch me
display(['mean ' me.message])
end
try
display(['med ' num2str(median(H(:)))])
catch me
display(['med ' me.message])
end
|
|
Contact us