suppose you have an image called "image01.jpg"
img = imread('image01.jpg');
[featureVector,hogVisualization] = extractHOGFeatures(img);
% featureVector is HOG features
% hogVisualization is HOG feature visualization
you can display the result of HOG features with
plot(hogVisualization);