• 大小: 22KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-09
  • 语言: Matlab
  • 标签:

资源简介

香农编码、霍夫曼编码比较的matlab源代码,对香农编码、霍夫曼编码进行了比较明确的比较。

资源截图

代码片段和文件信息

function varargout = code(varargin)
% CODE M-file for code.fig
%      CODE by itself creates a new CODE or raises the existing
%      singleton*.
%
%      H = CODE returns the handle to a new CODE or the handle to
%      the existing singleton*.
%
%      CODE(‘CALLBACK‘hobjecteventDatahandles...) calls the local
%      function named CALLBACK in CODE.M with the given input arguments.
%
%      CODE(‘Property‘‘Value‘...) creates a new CODE or raises the
%      existing singleton*.  Starting from the left property value pairs are
%      applied to the GUI before code_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to code_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE‘s Tools menu.  Choose “GUI allows only one
%      instance to run (singleton)“.
%
% See also: GUIDE GUIDATA GUIHANDLES

% Edit the above text to modify the response to help code

% Last Modified by GUIDE v2.5 26-May-2011 20:58:04

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘       mfilename ...
                   ‘gui_Singleton‘  gui_Singleton ...
                   ‘gui_OpeningFcn‘ @code_OpeningFcn ...
                   ‘gui_OutputFcn‘  @code_OutputFcn ...
                   ‘gui_LayoutFcn‘  []  ...
                   ‘gui_Callback‘   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
    gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before code is made visible.
function code_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to code (see VARARGIN)

% Choose default command line output for code
handles.output = hobject;

% Update handles structure
guidata(hobject handles);

% UIWAIT makes code wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = code_OutputFcn(hobject eventdata handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;



function edit1_Callback(hobject eventdata handles)
% hobject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hobject‘String‘) returns contents of edit1 as tex

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      18640  2011-05-26 21:02  香农-哈弗曼\code.asv

     文件      14474  2011-05-26 21:14  香农-哈弗曼\code.fig

     文件      18640  2011-05-26 21:03  香农-哈弗曼\code.m

     文件       1158  2011-05-26 20:30  香农-哈弗曼\coding_xn.m

     文件       3075  2011-05-26 20:30  香农-哈弗曼\huffman.m

     文件         69  2011-05-26 20:30  香农-哈弗曼\说明.txt

     目录          0  2011-05-28 17:18  香农-哈弗曼

----------- ---------  ---------- -----  ----

                56056                    7


评论

共有 条评论

相关资源