%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Siddhartha Kasivajhula % PSYCH 221/ EE 362 (Winter 2007-2008) % Final Project: A Probabilistic Model of the Visual System % % ObserveScene.m % This function generates a visual scene and makes an observation of % that scene, using the functions GenerateScene and MakeObservation % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % define the size of the feature space NUM_FEATURES = 10; % uniquely represent all possible features as vectors all_features = eye(NUM_FEATURES); % define the scene scene_features = [1 2 4 5 8 10]; % Generate the scene scene = GenerateScene(NUM_FEATURES, scene_features); disp('The scene is:'); disp(scene); % Make an observation observation = MakeObservation(scene); disp('Observation:'); disp(observation); disp('Note: The above matrices should be thought of as sets of row-vectors, each of which represents a feature');